fix: 年度制修订-标准化发起

最后归档提交不了
This commit is contained in:
2023-12-28 09:42:51 +08:00
parent 895bd94491
commit d0e225c365
@@ -53,6 +53,11 @@ public class ProcessESAnnualInitEndListener implements ExecutionListener {
annualInits.forEach(annualInit -> annualInit.setId(null));
// 转换为企标计划数据并入库
enterpriseStandardPlans = BeanCopyUtils.copyBeanList(annualInits, EnterpriseStandardPlan.class);
// 设置一些字段
// 制修订类型字段
for (EnterpriseStandardPlan esp : enterpriseStandardPlans) {
esp.setApplicationCategory(esp.getProjectType());
}
espService.saveBatch(enterpriseStandardPlans);
log.info("数据存入企标计划数据库");
// 自动发起制修订流程