fix(企标稽查整改): 81096

This commit is contained in:
yjz
2024-02-19 18:24:53 +08:00
parent ba4066c256
commit 52779751eb
@@ -7,6 +7,7 @@ import com.jero.common.exception.JeroBootException;
import com.jero.common.util.SnowflakeUtils;
import com.jero.modules.activiti.entity.ProcessAll;
import com.jero.modules.activiti.entity.ProcessApprovalRecord;
import com.jero.modules.activiti.process.esinspectrectify.common.EsInspectRectifyCommon;
import com.jero.modules.activiti.process.esinspectrectify.entity.ProcessEsInspectRectify;
import com.jero.modules.activiti.process.esinspectrectify.service.IEsInspectRectifyFlowService;
import com.jero.modules.activiti.process.esinspectrectify.service.IProcessEsInspectRectifyService;
@@ -67,6 +68,15 @@ public class DelayApplyJob implements Job {
for (ProcessEsInspectRectify processEsInspectRectify : list) {
idList.add(processEsInspectRectify.getId());
EsInspectRectifyFlowVO esInspectReportFlowVO = new EsInspectRectifyFlowVO();
// 更新整改计划完成日期为申请延期日期,整改实际完成时间置空,整改状态为整改中
enterpriseStandardInspectRectifyPlanService.update(
new LambdaUpdateWrapper<EnterpriseStandardInspectRectifyPlan>()
.eq(EnterpriseStandardInspectRectifyPlan::getId, processEsInspectRectify.getInspectRectifyPlanId())
.set(EnterpriseStandardInspectRectifyPlan::getPlanCompleteDate, processEsInspectRectify.getApplyDelayDate())
.set(EnterpriseStandardInspectRectifyPlan::getActualCompleteDate, null)
.set(EnterpriseStandardInspectRectifyPlan::getRectifyStatus, EsInspectRectifyCommon.INSPECT_RECTIFY_STATUS_1));
// 整改计划
EnterpriseStandardInspectRectifyPlan enterpriseStandardInspectRectifyPlan =
enterpriseStandardInspectRectifyPlanService.getById(processEsInspectRectify.getInspectRectifyPlanId());