Explorar o código

虫害检查-时间格式

hanqingsong hai 1 ano
pai
achega
8fa99713dd

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

@@ -17,14 +17,14 @@ public class TCcdata {
17 17
 
18 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 21
     private Date standTime;
22 22
 
23 23
     private Integer iTdh;
24 24
 
25 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 28
     private Date vUpdateTime;
29 29
 
30 30
     private String vUpdatePeople;
@@ -71,7 +71,8 @@ public class TCcdata {
71 71
     private String commitPeople;
72 72
     // 提交时间
73 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 78
      * 测虫数据id