ZeroLiYi 4 months ago
parent
commit
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
 package com.unis.emergencySupport.modular.es.param;
13
 package com.unis.emergencySupport.modular.es.param;
14
 
14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15
 import io.swagger.annotations.ApiModelProperty;
16
 import io.swagger.annotations.ApiModelProperty;
16
 import lombok.Getter;
17
 import lombok.Getter;
17
 import lombok.Setter;
18
 import lombok.Setter;
19
+import org.springframework.format.annotation.DateTimeFormat;
18
 
20
 
19
 import javax.validation.constraints.NotBlank;
21
 import javax.validation.constraints.NotBlank;
20
 import javax.validation.constraints.NotNull;
22
 import javax.validation.constraints.NotNull;
@@ -45,6 +47,8 @@ public class EsDeliveryEnterpriseAddParam {
45
 
47
 
46
     /** 成立时间 */
48
     /** 成立时间 */
47
     @ApiModelProperty(value = "成立时间", position = 8)
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
     private Date establishmentTime;
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
 package com.unis.emergencySupport.modular.es.param;
13
 package com.unis.emergencySupport.modular.es.param;
14
 
14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15
 import com.unis.basic.info.modular.grainPriceCollectCategory.param.GrainPriceCollectCategoryAddParam;
16
 import com.unis.basic.info.modular.grainPriceCollectCategory.param.GrainPriceCollectCategoryAddParam;
16
 import com.unis.emergencySupport.modular.es.param.EsNetworkEntryGrainAddParam;
17
 import com.unis.emergencySupport.modular.es.param.EsNetworkEntryGrainAddParam;
17
 import io.swagger.annotations.ApiModelProperty;
18
 import io.swagger.annotations.ApiModelProperty;
18
 import lombok.Getter;
19
 import lombok.Getter;
19
 import lombok.Setter;
20
 import lombok.Setter;
21
+import org.springframework.format.annotation.DateTimeFormat;
20
 
22
 
21
 import javax.validation.constraints.NotBlank;
23
 import javax.validation.constraints.NotBlank;
22
 import javax.validation.constraints.NotNull;
24
 import javax.validation.constraints.NotNull;
@@ -46,6 +48,8 @@ public class EsNetworkEntryAddParam {
46
 
48
 
47
     /** 成立时间 */
49
     /** 成立时间 */
48
     @ApiModelProperty(value = "成立时间", position = 8)
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
     private Date establishmentTime;
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
 package com.unis.emergencySupport.modular.es.param;
13
 package com.unis.emergencySupport.modular.es.param;
14
 
14
 
15
+import com.fasterxml.jackson.annotation.JsonFormat;
15
 import io.swagger.annotations.ApiModelProperty;
16
 import io.swagger.annotations.ApiModelProperty;
16
 import lombok.Getter;
17
 import lombok.Getter;
17
 import lombok.Setter;
18
 import lombok.Setter;
19
+import org.springframework.format.annotation.DateTimeFormat;
18
 
20
 
19
 import javax.validation.constraints.NotBlank;
21
 import javax.validation.constraints.NotBlank;
20
 import javax.validation.constraints.NotNull;
22
 import javax.validation.constraints.NotNull;
@@ -44,6 +46,8 @@ public class EsProcessEnterpriseAddParam {
44
 
46
 
45
     /** 成立时间 */
47
     /** 成立时间 */
46
     @ApiModelProperty(value = "成立时间", position = 8)
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
     private Date establishmentTime;
51
     private Date establishmentTime;
48
 
52
 
49
     /** 所属总公司企业信用代码 */
53
     /** 所属总公司企业信用代码 */