|
|
@@ -1,8 +1,11 @@
|
|
|
package com.chuanghai.ihotel.vo;
|
|
|
|
|
|
+import com.chuanghai.ihotel.util.BigDecimalSerializer;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
/**
|
|
|
@@ -17,23 +20,29 @@ public class UserOrderIndexVO {
|
|
|
/**
|
|
|
* 订单id
|
|
|
*/
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING)
|
|
|
private Long id;
|
|
|
/**
|
|
|
* 订单编号
|
|
|
*/
|
|
|
private String orderNo;
|
|
|
/**
|
|
|
- * 入住时间
|
|
|
+ * 实际支付金额
|
|
|
+ */
|
|
|
+ @JsonSerialize(using = BigDecimalSerializer.class)
|
|
|
+ private BigDecimal payAmount;
|
|
|
+ /**
|
|
|
+ * 下单时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private LocalDateTime createTime;
|
|
|
/**
|
|
|
- * 离店时间
|
|
|
+ * 入住时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private LocalDateTime enableStartTime;
|
|
|
/**
|
|
|
- * 下单时间
|
|
|
+ * 离店时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private LocalDateTime enableEndTime;
|
|
|
@@ -48,6 +57,7 @@ public class UserOrderIndexVO {
|
|
|
/**
|
|
|
* 房型id
|
|
|
*/
|
|
|
+ @JsonFormat(shape = JsonFormat.Shape.STRING)
|
|
|
private Long roomTypeId;
|
|
|
/**
|
|
|
* 房型名称
|