月报整合导出后--修改状态
This commit is contained in:
+17
-1
@@ -441,7 +441,23 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
File fileTem = new File(uploadpath + "/tempZip.zip");
|
File fileTem = new File(uploadpath + "/tempZip.zip");
|
||||||
FileUtil.deleteContents(fileTem);
|
FileUtil.deleteContents(fileTem);
|
||||||
}
|
}
|
||||||
|
//导出月报后修改列表状态
|
||||||
|
List<LawsMonthlyReportWriteEO> list = new ArrayList<>();
|
||||||
|
if(StringUtils.isBlank(lawsMonthlyReportWriteEO.getIds())){
|
||||||
|
//导出全部
|
||||||
|
list = this.list();
|
||||||
|
}else{
|
||||||
|
//导出部分
|
||||||
|
LambdaQueryWrapper<LawsMonthlyReportWriteEO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
lambdaQueryWrapper.in(LawsMonthlyReportWriteEO::getId,Arrays.asList(lawsMonthlyReportWriteEO.getIds().split(",")));
|
||||||
|
list = this.list(lambdaQueryWrapper);
|
||||||
|
}
|
||||||
|
for (LawsMonthlyReportWriteEO monthlyReportWriteEO : list) {
|
||||||
|
monthlyReportWriteEO.setExportState(ExportStateEnum.HAS_BEEN_EXPORT.getValue());
|
||||||
|
}
|
||||||
|
if(list.size() != 0){
|
||||||
|
this.updateBatchById(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user