Bladeren bron

优化商品下单

赵冬冬 4 jaren geleden
bovenliggende
commit
aa83602b99
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/OmsOrder.java

+ 6 - 1
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/OmsOrder.java

@@ -1,5 +1,6 @@
 package com.hwrj.cloud.portal.model;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import java.io.Serializable;
@@ -16,7 +17,7 @@ public class OmsOrder implements Serializable {
 
     @ApiModelProperty(value = "订单编号")
     private String orderSn;
-
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "提交时间")
     private Date createTime;
 
@@ -125,15 +126,19 @@ public class OmsOrder implements Serializable {
     @ApiModelProperty(value = "支付时间")
     private Date paymentTime;
 
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "发货时间")
     private Date deliveryTime;
 
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "确认收货时间")
     private Date receiveTime;
 
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "评价时间")
     private Date commentTime;
 
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "修改时间")
     private Date modifyTime;