fix(企标稽查整改): 81092
This commit is contained in:
+5
-3
@@ -67,6 +67,10 @@ public class DelayApplyJob implements Job {
|
|||||||
for (ProcessEsInspectRectify processEsInspectRectify : list) {
|
for (ProcessEsInspectRectify processEsInspectRectify : list) {
|
||||||
idList.add(processEsInspectRectify.getId());
|
idList.add(processEsInspectRectify.getId());
|
||||||
EsInspectRectifyFlowVO esInspectReportFlowVO = new EsInspectRectifyFlowVO();
|
EsInspectRectifyFlowVO esInspectReportFlowVO = new EsInspectRectifyFlowVO();
|
||||||
|
// 整改计划
|
||||||
|
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
|
||||||
|
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectRectify.getInspectRectifyPlanId());
|
||||||
|
|
||||||
// 处理流程信息
|
// 处理流程信息
|
||||||
ProcessAll oldProcessAll = processAllService.getOne(
|
ProcessAll oldProcessAll = processAllService.getOne(
|
||||||
new LambdaQueryWrapper<ProcessAll>()
|
new LambdaQueryWrapper<ProcessAll>()
|
||||||
@@ -74,11 +78,9 @@ public class DelayApplyJob implements Job {
|
|||||||
ProcessAll processAll = new ProcessAll();
|
ProcessAll processAll = new ProcessAll();
|
||||||
processAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
|
processAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
|
||||||
processAll.setPrcName(oldProcessAll.getPrcName());
|
processAll.setPrcName(oldProcessAll.getPrcName());
|
||||||
|
processAll.setCreateUserId(enterpriseStandardInspectRectifyPlan.getResponseUser());
|
||||||
esInspectReportFlowVO.setProcessAll(processAll);
|
esInspectReportFlowVO.setProcessAll(processAll);
|
||||||
|
|
||||||
// 整改计划
|
|
||||||
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan = enterpriseStandardInspectRectifyPlanService.getById(processEsInspectRectify.getInspectRectifyPlanId());
|
|
||||||
|
|
||||||
// 处理流程审批信息
|
// 处理流程审批信息
|
||||||
ProcessApprovalRecord processApprovalRecord = new ProcessApprovalRecord();
|
ProcessApprovalRecord processApprovalRecord = new ProcessApprovalRecord();
|
||||||
processApprovalRecord.setProjectId(processAll.getProjectId());
|
processApprovalRecord.setProjectId(processAll.getProjectId());
|
||||||
|
|||||||
+4
-5
@@ -105,7 +105,6 @@ public class EsInspectRectifyFlowServiceImpl implements IEsInspectRectifyFlowSer
|
|||||||
processAll.setPrcStatus(ProcessStatusEnum.INCOMPLETE.getValue());
|
processAll.setPrcStatus(ProcessStatusEnum.INCOMPLETE.getValue());
|
||||||
DateTime date = DateUtil.date();
|
DateTime date = DateUtil.date();
|
||||||
processAll.setPrcNum(DateUtil.format(date, DatePattern.PURE_DATETIME_MS_PATTERN));
|
processAll.setPrcNum(DateUtil.format(date, DatePattern.PURE_DATETIME_MS_PATTERN));
|
||||||
processAll.setCreateUserId(loginUser.getId());
|
|
||||||
processAllService.update(processAll,
|
processAllService.update(processAll,
|
||||||
new LambdaUpdateWrapper<ProcessAll>()
|
new LambdaUpdateWrapper<ProcessAll>()
|
||||||
.eq(ProcessAll::getProcessInstanceId, processInstance.getId()));
|
.eq(ProcessAll::getProcessInstanceId, processInstance.getId()));
|
||||||
@@ -273,18 +272,18 @@ public class EsInspectRectifyFlowServiceImpl implements IEsInspectRectifyFlowSer
|
|||||||
// 申请延期日期 <= 当前日期 立即生成新流程
|
// 申请延期日期 <= 当前日期 立即生成新流程
|
||||||
if (processEsInspectReportVO.getApplyDelayDate().before(parse)
|
if (processEsInspectReportVO.getApplyDelayDate().before(parse)
|
||||||
|| processEsInspectReportVO.getApplyDelayDate().equals(parse)){
|
|| processEsInspectReportVO.getApplyDelayDate().equals(parse)){
|
||||||
|
// 整改计划
|
||||||
|
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
|
||||||
|
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectReportVO.getInspectRectifyPlanId());
|
||||||
// 生成新整改流程
|
// 生成新整改流程
|
||||||
EsInspectRectifyFlowVO newEsInspectReportFlowVO = new EsInspectRectifyFlowVO();
|
EsInspectRectifyFlowVO newEsInspectReportFlowVO = new EsInspectRectifyFlowVO();
|
||||||
// 处理流程信息
|
// 处理流程信息
|
||||||
ProcessAll newProcessAll = new ProcessAll();
|
ProcessAll newProcessAll = new ProcessAll();
|
||||||
newProcessAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
|
newProcessAll.setProjectId(String.valueOf(SnowflakeUtils.snowflake()));
|
||||||
newProcessAll.setPrcName(processAll.getPrcName());
|
newProcessAll.setPrcName(processAll.getPrcName());
|
||||||
|
newProcessAll.setCreateUserId(enterpriseStandardInspectRectifyPlan.getResponseUser());
|
||||||
newEsInspectReportFlowVO.setProcessAll(newProcessAll);
|
newEsInspectReportFlowVO.setProcessAll(newProcessAll);
|
||||||
|
|
||||||
// 整改计划
|
|
||||||
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
|
|
||||||
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectReportVO.getInspectRectifyPlanId());
|
|
||||||
|
|
||||||
// 处理流程审批信息
|
// 处理流程审批信息
|
||||||
ProcessApprovalRecord newProcessApprovalRecord = new ProcessApprovalRecord();
|
ProcessApprovalRecord newProcessApprovalRecord = new ProcessApprovalRecord();
|
||||||
newProcessApprovalRecord.setId(String.valueOf(SnowflakeUtils.snowflake()));
|
newProcessApprovalRecord.setId(String.valueOf(SnowflakeUtils.snowflake()));
|
||||||
|
|||||||
Reference in New Issue
Block a user