标准征求意见

This commit is contained in:
yuezhihang
2021-08-02 15:18:56 +08:00
parent 9ff39821ea
commit 143371f948
2 changed files with 14 additions and 2 deletions
@@ -1,5 +1,6 @@
package com.ydw.bat.wkflow.business_slrs.dao;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
@@ -118,7 +118,18 @@ public class StartSurveyAfter implements TaskListener {
busProcessNewNext.setUserId(delegateTask.getVariable("dockUser",String.class));
busBean.save(busProcessNewNext);
}
Date time=new Date();
String dateTime=object.getString("endTime");
dateTime = dateTime.replace("Z", " UTC");
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS Z");
SimpleDateFormat defaultFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
time= format.parse(dateTime);
String result = defaultFormat.format(time);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
}
//发起公开征求意见
SarPublicIdea sarPublicIdea = SarPublicIdea.builder()
.id(UUID.randomUUID().toString())
@@ -126,7 +137,7 @@ public class StartSurveyAfter implements TaskListener {
.cid(object.getString("cid"))
.cname(object.getString("cname"))
.startTime(new Date())
.endTime(new Date())
.endTime(time)
.build();
ResponseMessage result = lawsUserInfoService.addSarPublicIdea(sarPublicIdea);
if(!result.isOk()){