fix(企标稽查整改): 81092

This commit is contained in:
yjz
2024-01-23 11:40:48 +08:00
parent 88722aa321
commit 63177a71ae
2 changed files with 9 additions and 8 deletions
@@ -67,6 +67,10 @@ public class DelayApplyJob implements Job {
for (ProcessEsInspectRectify processEsInspectRectify : list) {
idList.add(processEsInspectRectify.getId());
EsInspectRectifyFlowVO esInspectReportFlowVO = new EsInspectRectifyFlowVO();
// 整改计划
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectRectify.getInspectRectifyPlanId());
// 处理流程信息
ProcessAll oldProcessAll = processAllService.getOne(
new LambdaQueryWrapper<ProcessAll>()
@@ -74,11 +78,9 @@ public class DelayApplyJob implements Job {
ProcessAll processAll = new ProcessAll();
processAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
processAll.setPrcName(oldProcessAll.getPrcName());
processAll.setCreateUserId(enterpriseStandardInspectRectifyPlan.getResponseUser());
esInspectReportFlowVO.setProcessAll(processAll);
// 整改计划
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan = enterpriseStandardInspectRectifyPlanService.getById(processEsInspectRectify.getInspectRectifyPlanId());
// 处理流程审批信息
ProcessApprovalRecord processApprovalRecord = new ProcessApprovalRecord();
processApprovalRecord.setProjectId(processAll.getProjectId());
@@ -105,7 +105,6 @@ public class EsInspectRectifyFlowServiceImpl implements IEsInspectRectifyFlowSer
processAll.setPrcStatus(ProcessStatusEnum.INCOMPLETE.getValue());
DateTime date = DateUtil.date();
processAll.setPrcNum(DateUtil.format(date, DatePattern.PURE_DATETIME_MS_PATTERN));
processAll.setCreateUserId(loginUser.getId());
processAllService.update(processAll,
new LambdaUpdateWrapper<ProcessAll>()
.eq(ProcessAll::getProcessInstanceId, processInstance.getId()));
@@ -273,18 +272,18 @@ public class EsInspectRectifyFlowServiceImpl implements IEsInspectRectifyFlowSer
// 申请延期日期 <= 当前日期 立即生成新流程
if (processEsInspectReportVO.getApplyDelayDate().before(parse)
|| processEsInspectReportVO.getApplyDelayDate().equals(parse)){
// 整改计划
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectReportVO.getInspectRectifyPlanId());
// 生成新整改流程
EsInspectRectifyFlowVO newEsInspectReportFlowVO = new EsInspectRectifyFlowVO();
// 处理流程信息
ProcessAll newProcessAll = new ProcessAll();
newProcessAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
newProcessAll.setPrcName(processAll.getPrcName());
newProcessAll.setCreateUserId(enterpriseStandardInspectRectifyPlan.getResponseUser());
newEsInspectReportFlowVO.setProcessAll(newProcessAll);
// 整改计划
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectReportVO.getInspectRectifyPlanId());
// 处理流程审批信息
ProcessApprovalRecord newProcessApprovalRecord = new ProcessApprovalRecord();
newProcessApprovalRecord.setId(String.valueOf(SnowflakeUtils.snowflake()));