RoomRealDataStatuVO.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.chuanghai.ihotel.vo;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import lombok.Data;
  4. import java.time.LocalDateTime;
  5. /**
  6. * @Author: codingliang
  7. * @Description: 房间实时状态vo
  8. * @Date: 2022-08-04 16:46
  9. * @Version: V1.0
  10. **/
  11. @Data
  12. public class RoomRealDataStatuVO {
  13. /**
  14. * 房间id
  15. */
  16. private Long roomId;
  17. /**
  18. * 当前状态 1空闲、2预定、3入住、4脏房、5锁定
  19. */
  20. private String statu;
  21. /**
  22. * 房间使用信息 当前状态为2、3、4时该字段有值
  23. */
  24. private RoomUseInfo useInfo;
  25. @Data
  26. public static class RoomUseInfo {
  27. /**
  28. * 订单id
  29. */
  30. private Long orderId;
  31. /**
  32. * 客人姓名
  33. */
  34. private String userName;
  35. /**
  36. * 开始时间
  37. */
  38. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  39. private LocalDateTime enableStartTime;
  40. /**
  41. * 退房时间
  42. */
  43. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  44. private LocalDateTime enableEndTime;
  45. /**
  46. * 水起码 单位:吨
  47. */
  48. private String startOfWater;
  49. /**
  50. * 电起码 单位:度
  51. */
  52. private String startOfElectric;
  53. }
  54. }