gaodd il y a 4 mois
Parent
commit
f7d9554253

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/lawEnforcementSupervision/modular/pgmsgraincollectstrategy/entity/BizPgmsGrainCollectStrategy.java

@@ -12,7 +12,9 @@
12 12
  */
13 13
 package com.unis.lawEnforcementSupervision.modular.pgmsgraincollectstrategy.entity;
14 14
 
15
+import com.alibaba.excel.annotation.format.DateTimeFormat;
15 16
 import com.baomidou.mybatisplus.annotation.*;
17
+import com.fasterxml.jackson.annotation.JsonFormat;
16 18
 import io.swagger.annotations.ApiModelProperty;
17 19
 import lombok.Getter;
18 20
 import lombok.Setter;
@@ -65,5 +67,7 @@ public class BizPgmsGrainCollectStrategy {
65 67
 
66 68
     /** 采集时间 */
67 69
     @ApiModelProperty(value = "采集时间", position = 8)
70
+    @DateTimeFormat("HH:mm:ss")
71
+    @JsonFormat(pattern = "HH:mm:ss",timezone="GMT+8")
68 72
     private Date collectionTime;
69 73
 }

+ 1 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/lawEnforcementSupervision/modular/pgmsgraincollectstrategy/param/BizPgmsGrainCollectStrategyEditParam.java

@@ -46,6 +46,6 @@ public class BizPgmsGrainCollectStrategyEditParam {
46 46
 
47 47
     /** 采集时间 */
48 48
     @ApiModelProperty(value = "采集时间", position = 8)
49
-    private Date collectionTime;
49
+    private String collectionTime;
50 50
 
51 51
 }