Quellcode durchsuchen

修改生成时间

shengyang000 vor 3 Jahren
Ursprung
Commit
577cf7b767

+ 10 - 13
src/main/java/com/unissoft/model/ProcessAudit.java

@@ -1,15 +1,14 @@
1 1
 package com.unissoft.model;
2 2
 
3
-import com.baomidou.mybatisplus.annotation.TableName;
4
-import com.fasterxml.jackson.annotation.JsonFormat;
5 3
 import com.baomidou.mybatisplus.annotation.IdType;
6
-import java.util.Date;
7
-import com.baomidou.mybatisplus.annotation.TableId;
8 4
 import com.baomidou.mybatisplus.annotation.TableField;
9
-import java.io.Serializable;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
10 7
 import io.swagger.annotations.ApiModel;
11 8
 import io.swagger.annotations.ApiModelProperty;
12 9
 
10
+import java.io.Serializable;
11
+
13 12
 /**
14 13
  * <p>
15 14
  * 
@@ -144,14 +143,12 @@ public class ProcessAudit implements Serializable {
144 143
     private String workName;
145 144
 
146 145
     @ApiModelProperty(value = "办理开始时间")
147
-    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
148 146
     @TableField("start_date")
149
-    private Date startDate;
147
+    private String startDate;
150 148
 
151 149
     @ApiModelProperty(value = "办理结束时间")
152
-    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
153 150
     @TableField("end_date")
154
-    private Date endDate;
151
+    private String endDate;
155 152
 
156 153
     @ApiModelProperty(value = "办理页面url")
157 154
     @TableField("to_page")
@@ -283,18 +280,18 @@ public class ProcessAudit implements Serializable {
283 280
     public void setWorkName(String workName) {
284 281
         this.workName = workName;
285 282
     }
286
-    public Date getStartDate() {
283
+    public String getStartDate() {
287 284
         return startDate;
288 285
     }
289 286
 
290
-    public void setStartDate(Date startDate) {
287
+    public void setStartDate(String startDate) {
291 288
         this.startDate = startDate;
292 289
     }
293
-    public Date getEndDate() {
290
+    public String getEndDate() {
294 291
         return endDate;
295 292
     }
296 293
 
297
-    public void setEndDate(Date endDate) {
294
+    public void setEndDate(String endDate) {
298 295
         this.endDate = endDate;
299 296
     }
300 297
     public String getToPage() {

+ 4 - 3
src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

@@ -999,7 +999,8 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
999 999
             processAudit.setAuditState(0);//提交待审批
1000 1000
             // 获得SimpleDateFormat类
1001 1001
             SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
1002
-            processAudit.setApplyTime(sf.format(processToBeDone.getStartDate()));//申请时间
1002
+//            processAudit.setApplyTime(sf.format(processToBeDone.getStartDate()));//申请时间
1003
+            processAudit.setApplyTime(sf.format(new Date()));//申请时间
1003 1004
 
1004 1005
             if (null != processToBeDone.getHouseId()) {//仓id
1005 1006
                 processAudit.setHouseId(processToBeDone.getHouseId());
@@ -1018,10 +1019,10 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
1018 1019
                 processAudit.setWorkName(processToBeDone.getTitle());
1019 1020
             }
1020 1021
             if (null != processToBeDone.getStartDate()) {//办理开始时间
1021
-                processAudit.setStartDate(processToBeDone.getStartDate());
1022
+                processAudit.setStartDate(sf.format(processToBeDone.getStartDate()));
1022 1023
             }
1023 1024
             if (null != processToBeDone.getEndDate()) {//办理结束时间
1024
-                processAudit.setEndDate(processToBeDone.getEndDate());
1025
+                processAudit.setEndDate(sf.format(processToBeDone.getEndDate()));
1025 1026
             }
1026 1027
             if (null != processToBeDone.getToPage()) {//办理页面url
1027 1028
                 processAudit.setToPage(processToBeDone.getToPage());