Parcourir la source

虫害检查-时间格式

hanqingsong il y a 1 an
Parent
commit
8fa99713dd
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      src/main/java/com/chinaitop/depot/storage/model/TCcdata.java

+ 4 - 3
src/main/java/com/chinaitop/depot/storage/model/TCcdata.java

@@ -17,14 +17,14 @@ public class TCcdata {
17
 
17
 
18
     private String standOr;
18
     private String standOr;
19
 
19
 
20
-    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
20
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
21
     private Date standTime;
21
     private Date standTime;
22
 
22
 
23
     private Integer iTdh;
23
     private Integer iTdh;
24
 
24
 
25
     private Integer iValue;
25
     private Integer iValue;
26
 
26
 
27
-    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
27
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
28
     private Date vUpdateTime;
28
     private Date vUpdateTime;
29
 
29
 
30
     private String vUpdatePeople;
30
     private String vUpdatePeople;
@@ -71,7 +71,8 @@ public class TCcdata {
71
     private String commitPeople;
71
     private String commitPeople;
72
     // 提交时间
72
     // 提交时间
73
     @Getter @Setter
73
     @Getter @Setter
74
-    private String commitTime;
74
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
75
+    private Date commitTime;
75
 
76
 
76
     /**
77
     /**
77
      * 测虫数据id
78
      * 测虫数据id