Ver código fonte

日期导入

xlq 3 semanas atrás
pai
commit
fd687892bd

+ 3 - 0
src/main/java/com/qmrb/system/pojo/entity/ContractPlaceNumberRel.java

@@ -2,6 +2,7 @@ package com.qmrb.system.pojo.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.qmrb.system.common.base.BaseEntity;
 import java.util.Date;
 import com.baomidou.mybatisplus.annotation.TableId;
@@ -49,12 +50,14 @@ public class ContractPlaceNumberRel extends BaseEntity {
      * 开始时间
      */
     @TableField("start_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date startTime;
 
     /**
      * 到期日期
      */
     @TableField("end_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date endTime;
 
     /**

+ 3 - 0
src/main/java/com/qmrb/system/pojo/form/ContractForm.java

@@ -3,6 +3,9 @@ package com.qmrb.system.pojo.form;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
+import java.math.BigDecimal;
+import java.util.Date;
+
 /**
  * <p>
  * 客商协议表表单

+ 3 - 0
src/main/java/com/qmrb/system/pojo/query/ContractQuery.java

@@ -5,6 +5,9 @@ import com.qmrb.system.common.base.BasePageQuery;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 
+import java.math.BigDecimal;
+import java.util.Date;
+
 /**
  * <p>
  * 客商协议表查询对象

+ 3 - 0
src/main/java/com/qmrb/system/pojo/vo/ContractPlaceNumberRelVO.java

@@ -1,5 +1,6 @@
 package com.qmrb.system.pojo.vo;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
@@ -36,11 +37,13 @@ public class ContractPlaceNumberRelVO {
      * 开始时间
      */
 	@Schema(description = "开始时间",type="Date")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date startTime;
     /**
      * 到期日期
      */
 	@Schema(description = "到期日期",type="Date")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date endTime;
     /**
      * 0停用1启用 2到期

+ 3 - 0
src/main/java/com/qmrb/system/pojo/vo/ContractVO.java

@@ -3,6 +3,9 @@ package com.qmrb.system.pojo.vo;
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
+import java.math.BigDecimal;
+import java.util.Date;
+
 /**
  * <p>
  * 客商协议表视图对象