预报填写--编辑
This commit is contained in:
+14
-4
@@ -132,14 +132,24 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
saveOrUpdate(lawsMonthlyReportWriteEO);
|
saveOrUpdate(lawsMonthlyReportWriteEO);
|
||||||
|
|
||||||
if(ContentTemplateEnum.NEW_REQUEST_LIST_TEMPLATE.getValue().equals(lawsMonthlyReportWriteEO.getContentTemplate())){
|
if(ContentTemplateEnum.NEW_REQUEST_LIST_TEMPLATE.getValue().equals(lawsMonthlyReportWriteEO.getContentTemplate())){
|
||||||
//新征求意见清单模板
|
//新征求意见清单模板(先删除在新增)
|
||||||
|
//删除
|
||||||
|
LambdaQueryWrapper<NewOpinionTemplateEO> wrapper = new LambdaQueryWrapper<>();
|
||||||
|
wrapper.in(NewOpinionTemplateEO::getLawsMonthlyReportWriteId,lawsMonthlyReportWriteEO.getId());
|
||||||
|
iNewOpinionTemplateEOService.remove(wrapper);
|
||||||
|
//新增
|
||||||
List<NewOpinionTemplateEO> newOpinionTemplateEOList = lawsMonthlyReportWriteEO.getNewOpinionTemplateEOList();
|
List<NewOpinionTemplateEO> newOpinionTemplateEOList = lawsMonthlyReportWriteEO.getNewOpinionTemplateEOList();
|
||||||
iNewOpinionTemplateEOService.updateBatchById(newOpinionTemplateEOList);
|
iNewOpinionTemplateEOService.saveBatch(newOpinionTemplateEOList);
|
||||||
|
|
||||||
}else if (ContentTemplateEnum.NEW_RELEASE_STANDARD_MANIFEST_TEMPLATE.getValue().equals(lawsMonthlyReportWriteEO.getContentTemplate())){
|
}else if (ContentTemplateEnum.NEW_RELEASE_STANDARD_MANIFEST_TEMPLATE.getValue().equals(lawsMonthlyReportWriteEO.getContentTemplate())){
|
||||||
//新发布标准清单模板
|
//新发布标准清单模板(先删除在新增)
|
||||||
|
//删除
|
||||||
|
LambdaQueryWrapper<NewStandardTemplateEO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
lambdaQueryWrapper.in(NewStandardTemplateEO::getLawsMonthlyReportWriteId,lawsMonthlyReportWriteEO.getId());
|
||||||
|
iNewStandardTemplateEOService.remove(lambdaQueryWrapper);
|
||||||
|
//新增
|
||||||
List<NewStandardTemplateEO> newStandardTemplateEOList = lawsMonthlyReportWriteEO.getNewStandardTemplateEOList();
|
List<NewStandardTemplateEO> newStandardTemplateEOList = lawsMonthlyReportWriteEO.getNewStandardTemplateEOList();
|
||||||
iNewStandardTemplateEOService.updateBatchById(newStandardTemplateEOList);
|
iNewStandardTemplateEOService.saveBatch(newStandardTemplateEOList);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user