Jelajahi Sumber

修复时间返回带T

wutt 5 tahun lalu
induk
melakukan
af7c7a8f78
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      pcbms/src/main/java/com/hssx/pcbms/entity/GoodsNo.java

+ 9 - 0
pcbms/src/main/java/com/hssx/pcbms/entity/GoodsNo.java

@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
 import java.time.LocalDateTime;
 import com.baomidou.mybatisplus.annotation.TableField;
 import java.io.Serializable;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
@@ -59,6 +61,7 @@ public class GoodsNo extends Model<GoodsNo> {
      * 创建日期
      */
     @TableField("indate")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime indate;
 
     /**
@@ -77,6 +80,7 @@ public class GoodsNo extends Model<GoodsNo> {
      * 最后更新日期
      */
     @TableField("update_indate")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime updateIndate;
 
     /**
@@ -221,30 +225,35 @@ public class GoodsNo extends Model<GoodsNo> {
      * 上次更新时间
      */
     @TableField("last_update_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime lastUpdateTime;
 
     /**
      * 下次更新时间
      */
     @TableField("next_update_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime nextUpdateTime;
 
     /**
      * 上架时间
      */
     @TableField("grounding_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime groundingTime;
 
     /**
      * 下架时间
      */
     @TableField("undercarriage_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime undercarriageTime;
 
     /**
      * 首次使用时间
      */
     @TableField("first_use_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime firstUseTime;
 
     /**