Merge remote-tracking branch 'origin/thirdStage' into thirdStage

This commit is contained in:
yjz
2024-01-23 15:09:53 +08:00
2 changed files with 8 additions and 1 deletions
@@ -63,7 +63,10 @@ public class ProcessESInitChangeEndListener implements ExecutionListener {
processEsInitChange.setId(null);
processEsInitChange.setProjectStatus(ESPProjectStatus.IN_PROGRESS.getValue());
processEsInitChange.setChangeStatus(ESPChangeType.ADD.getValue());
processEsInitChange.setApplicationCategory(ESPProjectType.ENACT.getValue());
if (ESPProjectType.MODIFY.getValue().equals(projectType))
processEsInitChange.setApplicationCategory(ESPProjectType.MODIFY.getValue());
else
processEsInitChange.setApplicationCategory(ESPProjectType.ENACT.getValue());
}
// 转换为企标计划数据并入库
enterpriseStandardPlans = BeanCopyUtils.copyBeanList(processEsInitChanges, EnterpriseStandardPlan.class);
@@ -219,7 +219,11 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
private void setInitChangeData(String standardNo, ProcessEsInitChange initChange, String processInstanceId) {
Map<String, Object> es = commonService.getByIdAndModule(null, TableNameEnum.ENTERPRISE_STANDARDS.getValue(), "2", standardNo);
// 获取当前年份
Calendar date = Calendar.getInstance();
String curYearNumber = String.valueOf(date.get(Calendar.YEAR));
initChange.setProcessInstanceId(processInstanceId)
.setNewEnStandardNo(esUtil.changeStandardNumberYearNumber(standardNo, curYearNumber))
.setApplicationCategory(ESPApplicationCategoryEnum.INITIATION.getValue())
.setProjectType(ESPProjectType.MODIFY.getValue())
.setOriginEnStandardNo((String) es.get(FieldCommon.STANDARD_NUMBER))