|
|
@@ -125,31 +125,37 @@ public class EarlyWarningWithoutSubmitTask { |
|
|
|
switch (flowType) { |
|
|
|
// 已立项未采购 获取 立项时间 |
|
|
|
case APPROVED_PROJECT_NOT_PURCHASED:{ |
|
|
|
Map<String, ProjectStatusChange> approvedProjectNotPurchasedMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.DECLARED_RECORD_PASS); |
|
|
|
if (CollUtil.isNotEmpty(approvedProjectNotPurchasedMap)){ |
|
|
|
projectStatusChangeMap.putAll(approvedProjectNotPurchasedMap); |
|
|
|
stepName = TaskConstant.StepName.PURCHASE; |
|
|
|
stepName = TaskConstant.StepName.PURCHASE; |
|
|
|
if (CollUtil.isNotEmpty(projectCodes)) { |
|
|
|
Map<String, ProjectStatusChange> approvedProjectNotPurchasedMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.DECLARED_RECORD_PASS); |
|
|
|
if (CollUtil.isNotEmpty(approvedProjectNotPurchasedMap)) { |
|
|
|
projectStatusChangeMap.putAll(approvedProjectNotPurchasedMap); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
// 已采购未改造完成 获取合同签订时间 |
|
|
|
case PURCHASED_UNMODIFIED:{ |
|
|
|
Map<String, ProjectStatusChange> purchasedUnmodifiedMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.SUBMIT_PURCHASE_CONTRACT_RECORD); |
|
|
|
if (CollUtil.isNotEmpty(purchasedUnmodifiedMap)){ |
|
|
|
projectStatusChangeMap.putAll(purchasedUnmodifiedMap); |
|
|
|
stepName = TaskConstant.StepName.ADAPT_MODIFY; |
|
|
|
stepName = TaskConstant.StepName.ADAPT_MODIFY; |
|
|
|
if (CollUtil.isNotEmpty(projectCodes)) { |
|
|
|
Map<String, ProjectStatusChange> purchasedUnmodifiedMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.SUBMIT_PURCHASE_CONTRACT_RECORD); |
|
|
|
if (CollUtil.isNotEmpty(purchasedUnmodifiedMap)) { |
|
|
|
projectStatusChangeMap.putAll(purchasedUnmodifiedMap); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
// 已改造完成未终验 获取单位确认时间 |
|
|
|
case MODIFIED_NOT_FINAL_INSPECTION:{ |
|
|
|
Map<String, ProjectStatusChange> modifiedNotFinalInspectionMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.SUBMIT_PURCHASE_ORG_CONFIRM); |
|
|
|
if (CollUtil.isNotEmpty(modifiedNotFinalInspectionMap)){ |
|
|
|
projectStatusChangeMap.putAll(modifiedNotFinalInspectionMap); |
|
|
|
stepName = TaskConstant.StepName.FINAL; |
|
|
|
stepName = TaskConstant.StepName.FINAL; |
|
|
|
if (CollUtil.isNotEmpty(projectCodes)) { |
|
|
|
Map<String, ProjectStatusChange> modifiedNotFinalInspectionMap = projectStatusChangeService.listLastEventMap(projectCodes, |
|
|
|
ProjectStateChangeEvent.SUBMIT_PURCHASE_ORG_CONFIRM); |
|
|
|
if (CollUtil.isNotEmpty(modifiedNotFinalInspectionMap)) { |
|
|
|
projectStatusChangeMap.putAll(modifiedNotFinalInspectionMap); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|