UserOrderDetailVO.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package com.chuanghai.ihotel.vo;
  2. import com.chuanghai.ihotel.util.BigDecimalSerializer;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  5. import lombok.Data;
  6. import java.math.BigDecimal;
  7. import java.time.LocalDateTime;
  8. /**
  9. * @Author: codingliang
  10. * @Description: 用户订单详情
  11. * @Date: 2022-08-01 9:20
  12. * @Version: V1.0
  13. **/
  14. @Data
  15. public class UserOrderDetailVO {
  16. /**
  17. * 订单id
  18. */
  19. @JsonFormat(shape = JsonFormat.Shape.STRING)
  20. private Long id;
  21. /**
  22. * 订单编号
  23. */
  24. private String orderNo;
  25. /**
  26. * 用户姓名
  27. */
  28. private String userName;
  29. /**
  30. * 用户手机号码
  31. */
  32. private String userPhone;
  33. /**
  34. * 下单时间
  35. */
  36. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  37. private LocalDateTime createTime;
  38. /**
  39. * 支付时间
  40. */
  41. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  42. private LocalDateTime payTime;
  43. /**
  44. * 最早入住时间 最早可入住时间
  45. */
  46. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  47. private LocalDateTime enableStartTime;
  48. /**
  49. * 最晚离店时间 最晚要离店时间
  50. */
  51. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  52. private LocalDateTime enableEndTime;
  53. /**
  54. * 房间id
  55. */
  56. @JsonFormat(shape = JsonFormat.Shape.STRING)
  57. private Long roomId;
  58. /**
  59. * 房间编号
  60. */
  61. private String roomNo;
  62. /**
  63. * 房型id
  64. */
  65. @JsonFormat(shape = JsonFormat.Shape.STRING)
  66. private Long roomTypeId;
  67. /**
  68. * 房型名称
  69. */
  70. private String roomTypeName;
  71. /**
  72. * 房型日常价格
  73. */
  74. private BigDecimal roomTypeUsualPrice;
  75. /**
  76. * 房型优惠价格
  77. */
  78. private BigDecimal roomTypeDiscountPrice;
  79. /**
  80. * 实际支付金额
  81. */
  82. @JsonSerialize(using = BigDecimalSerializer.class)
  83. private BigDecimal payAmount;
  84. /**
  85. * 订单状态 0已取消、1待支付、2待入住、3已入住、4待结账、5已完成
  86. */
  87. private String orderStatu;
  88. /**
  89. * 业务状态 0待处理、1发起退款、2发起结账支付、3退款或结账支付完成,订单状态为4的时候,显示该状态
  90. */
  91. private String bizStatu;
  92. /**
  93. * 水起码 单位:吨
  94. */
  95. private String startOfWater;
  96. /**
  97. * 水止码 单位:吨
  98. */
  99. private String endOfWater;
  100. /**
  101. * 电起码 单位:度
  102. */
  103. private String startOfElectric;
  104. /**
  105. * 电止码 单位:度
  106. */
  107. private String endOfElectric;
  108. /**
  109. * (水电)总费用 单位:元
  110. */
  111. @JsonSerialize(using = BigDecimalSerializer.class)
  112. private BigDecimal totalFree;
  113. /**
  114. * (水电)减免费用 单位:元
  115. */
  116. @JsonSerialize(using = BigDecimalSerializer.class)
  117. private BigDecimal discountFree;
  118. /**
  119. * 应缴费用 总费用-减免费用 单位:元
  120. */
  121. @JsonSerialize(using = BigDecimalSerializer.class)
  122. private BigDecimal shouldFree;
  123. /**
  124. * 补缴费用 应缴费用-预缴费用 【补缴费用大于0时需要调用补缴接口发起支付】
  125. */
  126. @JsonSerialize(using = BigDecimalSerializer.class)
  127. private BigDecimal realFree;
  128. /**
  129. * 锁实时密码
  130. */
  131. private String lockRealtimePassword;
  132. /**
  133. * 锁实时密码有效时间-开始
  134. */
  135. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  136. private LocalDateTime passwordStartTime;
  137. /**
  138. * 锁实时密码有效时间-结束
  139. */
  140. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  141. private LocalDateTime passwordEndTime;
  142. }