Browse Source

日期格式

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