标准征求意见
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ydw.bat.wkflow.business_slrs.dao;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
+13
-2
@@ -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()){
|
||||
|
||||
Reference in New Issue
Block a user