Browse Source

金额

master
PoffyZhang 1 year ago
parent
commit
2c1deec795
2 changed files with 12 additions and 23 deletions
  1. +6
    -14
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
  2. +6
    -9
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/ResToBeProcessedVO.java

+ 6
- 14
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

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


+ 6
- 9
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/model/vo/ResToBeProcessedVO.java View File

@@ -1,17 +1,14 @@
package com.ningdatech.pmapi.todocenter.model.vo; package com.ningdatech.pmapi.todocenter.model.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wflow.workflow.bean.vo.ProcessInstanceVo;
import com.wflow.workflow.bean.vo.ProcessTaskVo;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;

import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;


/** /**
* 待办中心-待我处理返回实体信息 * 待办中心-待我处理返回实体信息
@@ -57,10 +54,10 @@ public class ResToBeProcessedVO implements Serializable {
private String processStatusName; private String processStatusName;


@ApiModelProperty("流程发起时间") @ApiModelProperty("流程发起时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime processLaunchTime;
@JSONField(format = "yyyy-MM-dd HH:mm")
private Date processLaunchTime;


@ApiModelProperty("流程处理时间") @ApiModelProperty("流程处理时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private LocalDateTime processHandleTime;
@JSONField(format = "yyyy-MM-dd HH:mm")
private Date processHandleTime;
} }

Loading…
Cancel
Save