ZeroLiYi 4 månader sedan
förälder
incheckning
7fd21557cf

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/emergencySupport/modular/es/param/EsDeliveryEnterpriseAddParam.java

@@ -12,9 +12,11 @@
12 12
  */
13 13
 package com.unis.emergencySupport.modular.es.param;
14 14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15 16
 import io.swagger.annotations.ApiModelProperty;
16 17
 import lombok.Getter;
17 18
 import lombok.Setter;
19
+import org.springframework.format.annotation.DateTimeFormat;
18 20
 
19 21
 import javax.validation.constraints.NotBlank;
20 22
 import javax.validation.constraints.NotNull;
@@ -45,6 +47,8 @@ public class EsDeliveryEnterpriseAddParam {
45 47
 
46 48
     /** 成立时间 */
47 49
     @ApiModelProperty(value = "成立时间", position = 8)
50
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
51
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
48 52
     private Date establishmentTime;
49 53
 
50 54
     /** 所属总公司企业信用代码 */

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/emergencySupport/modular/es/param/EsNetworkEntryAddParam.java

@@ -12,11 +12,13 @@
12 12
  */
13 13
 package com.unis.emergencySupport.modular.es.param;
14 14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15 16
 import com.unis.basic.info.modular.grainPriceCollectCategory.param.GrainPriceCollectCategoryAddParam;
16 17
 import com.unis.emergencySupport.modular.es.param.EsNetworkEntryGrainAddParam;
17 18
 import io.swagger.annotations.ApiModelProperty;
18 19
 import lombok.Getter;
19 20
 import lombok.Setter;
21
+import org.springframework.format.annotation.DateTimeFormat;
20 22
 
21 23
 import javax.validation.constraints.NotBlank;
22 24
 import javax.validation.constraints.NotNull;
@@ -46,6 +48,8 @@ public class EsNetworkEntryAddParam {
46 48
 
47 49
     /** 成立时间 */
48 50
     @ApiModelProperty(value = "成立时间", position = 8)
51
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
52
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
49 53
     private Date establishmentTime;
50 54
 
51 55
     /** 所属总公司企业信用代码 */

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/emergencySupport/modular/es/param/EsProcessEnterpriseAddParam.java

@@ -12,9 +12,11 @@
12 12
  */
13 13
 package com.unis.emergencySupport.modular.es.param;
14 14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15 16
 import io.swagger.annotations.ApiModelProperty;
16 17
 import lombok.Getter;
17 18
 import lombok.Setter;
19
+import org.springframework.format.annotation.DateTimeFormat;
18 20
 
19 21
 import javax.validation.constraints.NotBlank;
20 22
 import javax.validation.constraints.NotNull;
@@ -44,6 +46,8 @@ public class EsProcessEnterpriseAddParam {
44 46
 
45 47
     /** 成立时间 */
46 48
     @ApiModelProperty(value = "成立时间", position = 8)
49
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
50
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
47 51
     private Date establishmentTime;
48 52
 
49 53
     /** 所属总公司企业信用代码 */