法规月报编辑
This commit is contained in:
+6
@@ -140,6 +140,9 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
iNewOpinionTemplateEOService.remove(wrapper);
|
iNewOpinionTemplateEOService.remove(wrapper);
|
||||||
//新增
|
//新增
|
||||||
List<NewOpinionTemplateEO> newOpinionTemplateEOList = lawsMonthlyReportWriteEO.getNewOpinionTemplateEOList();
|
List<NewOpinionTemplateEO> newOpinionTemplateEOList = lawsMonthlyReportWriteEO.getNewOpinionTemplateEOList();
|
||||||
|
for (NewOpinionTemplateEO newOpinionTemplateEO : newOpinionTemplateEOList) {
|
||||||
|
newOpinionTemplateEO.setLawsMonthlyReportWriteId(lawsMonthlyReportWriteEO.getId());
|
||||||
|
}
|
||||||
iNewOpinionTemplateEOService.saveBatch(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())){
|
||||||
@@ -150,6 +153,9 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
iNewStandardTemplateEOService.remove(lambdaQueryWrapper);
|
iNewStandardTemplateEOService.remove(lambdaQueryWrapper);
|
||||||
//新增
|
//新增
|
||||||
List<NewStandardTemplateEO> newStandardTemplateEOList = lawsMonthlyReportWriteEO.getNewStandardTemplateEOList();
|
List<NewStandardTemplateEO> newStandardTemplateEOList = lawsMonthlyReportWriteEO.getNewStandardTemplateEOList();
|
||||||
|
for (NewStandardTemplateEO newStandardTemplateEO : newStandardTemplateEOList) {
|
||||||
|
newStandardTemplateEO.setLawsMonthlyReportWriteId(lawsMonthlyReportWriteEO.getId());
|
||||||
|
}
|
||||||
iNewStandardTemplateEOService.saveBatch(newStandardTemplateEOList);
|
iNewStandardTemplateEOService.saveBatch(newStandardTemplateEOList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user