|
|
@@ -97,6 +97,8 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.*; |
|
|
@@ -196,10 +198,7 @@ public class TodoCenterManage { |
|
|
|
ProcessTaskVo taskVo = taskMap.get(d.getInstanceId()); |
|
|
|
res.setNodeId(taskVo.getTaskDefKey()); |
|
|
|
res.setProcessStatusName(taskVo.getStatus()); |
|
|
|
LocalDateTime launchTime = NdDateUtils.date2LocalDateTime(d.getCreateTime()); |
|
|
|
String timeStr = NdDateUtils.format(launchTime, DatePattern.NORM_DATETIME_MINUTE_PATTERN); |
|
|
|
LocalDateTime processLaunchTime = LocalDateTime.parse(timeStr, DateTimeFormatter.ofPattern(DatePattern.NORM_DATETIME_MINUTE_PATTERN)); |
|
|
|
res.setProcessLaunchTime(processLaunchTime); |
|
|
|
res.setProcessLaunchTime(d.getCreateTime()); |
|
|
|
return res; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return PageVo.of(resVos, todoList.size()); |
|
|
@@ -748,14 +747,7 @@ public class TodoCenterManage { |
|
|
|
BeanUtils.copyProperties(projectInfo, res); |
|
|
|
res.setProjectId(projectInfo.getId()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
LocalDateTime launchTime = NdDateUtils.date2LocalDateTime(d.getCreateTime()); |
|
|
|
String launchTimeStr = NdDateUtils.format(launchTime, DatePattern.NORM_DATETIME_MINUTE_PATTERN); |
|
|
|
LocalDateTime processLaunchTime = LocalDateTime.parse(launchTimeStr, DateTimeFormatter.ofPattern(DatePattern.NORM_DATETIME_MINUTE_PATTERN)); |
|
|
|
res.setProcessLaunchTime(processLaunchTime); |
|
|
|
LocalDateTime handleTime = NdDateUtils.date2LocalDateTime(d.getTaskEndTime()); |
|
|
|
String handleTimeStr = NdDateUtils.format(handleTime, DatePattern.NORM_DATETIME_MINUTE_PATTERN); |
|
|
|
LocalDateTime processHandleTime = LocalDateTime.parse(handleTimeStr, DateTimeFormatter.ofPattern(DatePattern.NORM_DATETIME_MINUTE_PATTERN)); |
|
|
|
res.setProcessHandleTime(processHandleTime); |
|
|
|
res.setProcessLaunchTime(d.getCreateTime()); |
|
|
|
return res; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return PageVo.of(resVos, iDoList.size()); |
|
|
@@ -874,7 +866,7 @@ public class TodoCenterManage { |
|
|
|
res.setBuildOrg(project.getBuildOrgName()); |
|
|
|
res.setProjectId(project.getId()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
res.setProcessLaunchTime(NdDateUtils.date2LocalDateTime(d.getStartTime())); |
|
|
|
res.setProcessLaunchTime(d.getStartTime()); |
|
|
|
return res; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return PageVo.of(resVos,submittedList.size()); |
|
|
@@ -993,7 +985,7 @@ public class TodoCenterManage { |
|
|
|
res.setProjectId(project.getId()); |
|
|
|
res.setBuildOrg(project.getBuildOrgName()); |
|
|
|
res.setProcessStatusName(d.getStatus()); |
|
|
|
res.setProcessLaunchTime(NdDateUtils.date2LocalDateTime(d.getStartTime())); |
|
|
|
res.setProcessLaunchTime(d.getStartTime()); |
|
|
|
return res; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return PageVo.of(resVos, ccMeList.size()); |
|
|
|