月报整合导出
This commit is contained in:
+6
-4
@@ -456,8 +456,8 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
List<LawsMonthlyReportTitleTemplateEO> lawsMonthlyReportTitleTemplateEOS = lawsMonthlyReportTitleTemplateEOService.list();
|
List<LawsMonthlyReportTitleTemplateEO> lawsMonthlyReportTitleTemplateEOS = lawsMonthlyReportTitleTemplateEOService.list();
|
||||||
lawsMonthlyReportTitleTemplateEOS = lawsMonthlyReportTitleTemplateEOS.stream()
|
lawsMonthlyReportTitleTemplateEOS = lawsMonthlyReportTitleTemplateEOS.stream()
|
||||||
.filter(e -> memoriesChapterList.contains(e.getId())).collect(Collectors.toList());
|
.filter(e -> memoriesChapterList.contains(e.getId())).collect(Collectors.toList());
|
||||||
|
long l = System.currentTimeMillis();
|
||||||
String path = uploadpath + "/tempZip";
|
String path = uploadpath + "/tempZip"+l;
|
||||||
File fileTemp = new File(path);
|
File fileTemp = new File(path);
|
||||||
if (fileTemp.exists()) {
|
if (fileTemp.exists()) {
|
||||||
fileTemp.delete();
|
fileTemp.delete();
|
||||||
@@ -477,13 +477,15 @@ public class LawsMonthlyReportWriteEOServiceImpl extends ServiceImpl<LawsMonthly
|
|||||||
os.write(len);
|
os.write(len);
|
||||||
}
|
}
|
||||||
os.flush();
|
os.flush();
|
||||||
|
os.close();
|
||||||
|
fis.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}finally {
|
}finally {
|
||||||
IOUtils.closeQuietly(os);
|
IOUtils.closeQuietly(os);
|
||||||
File file = new File(uploadpath + "/tempZip");
|
File file = new File(uploadpath + "/tempZip"+l);
|
||||||
FileUtil.deleteContents(file);
|
FileUtil.deleteContents(file);
|
||||||
File fileTem = new File(uploadpath + "/tempZip.zip");
|
File fileTem = new File(uploadpath + "/tempZip"+l+".zip");
|
||||||
FileUtil.deleteContents(fileTem);
|
FileUtil.deleteContents(fileTem);
|
||||||
}
|
}
|
||||||
//导出月报后修改列表状态
|
//导出月报后修改列表状态
|
||||||
|
|||||||
Reference in New Issue
Block a user