From 796b44ea813a1133beae4f3a67f1c0263510c0c7 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 17 十一月 2024 09:45:07 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/service/sys/ReportService.java | 42 +++++++++++------------------------------- 1 files changed, 11 insertions(+), 31 deletions(-) diff --git a/src/main/java/com/moon/server/service/sys/ReportService.java b/src/main/java/com/moon/server/service/sys/ReportService.java index 8cafc99..6c8c423 100644 --- a/src/main/java/com/moon/server/service/sys/ReportService.java +++ b/src/main/java/com/moon/server/service/sys/ReportService.java @@ -16,11 +16,8 @@ import java.io.File; import java.util.*; -/** - * 鎶ュ憡妯℃澘 - * @author WWW - */ @Service +@SuppressWarnings("ALL") public class ReportService implements ReportMapper { @Autowired ReportMapper reportMapper; @@ -94,6 +91,11 @@ } @Override + public List<CountEntity> countSizesByType() { + return reportMapper.countSizesByType(); + } + + @Override public List<CountEntity> countServices() { return reportMapper.countServices(); } @@ -103,9 +105,11 @@ return reportMapper.countOperates(); } - /** - * 鍒涘缓鎶ュ憡 - */ + @Override + public List<CountEntity> countSizesByPrj() { + return reportMapper.countSizesByPrj(); + } + public void createReport(UserEntity ue, ReportEntity re, HttpServletResponse res) throws Exception { AttachEntity ae = attachService.selectByGuid(re.getGuid()); if (null == ae) { @@ -134,9 +138,6 @@ } } - /** - * 鐢熸垚鎶ュ憡 - */ private void generateReport(String source, String target, ReportEntity re) { if (StaticData.S1.equals(re.getType())) { switch (re.getCode()) { @@ -169,9 +170,6 @@ } } - /** - * 鍒涘缓 鐢ㄦ埛娴侀噺缁熻 Word - */ public void createCountOperatesWord(String source, String target) { List<CountEntity> list = countOperates(); if (null == list || list.isEmpty()) { @@ -188,9 +186,6 @@ WordHelper.generateWord(source, target, null, addList); } - /** - * 鍒涘缓 鏈嶅姟璋冪敤閲忕粺璁� Word - */ public void createCountServicesWord(String source, String target) { List<CountEntity> list = countServices(); if (null == list || list.isEmpty()) { @@ -207,9 +202,6 @@ WordHelper.generateWord(source, target, null, addList); } - /** - * 鍒涘缓 鏁版嵁閲忕粺璁� Word - */ public void createCountSizesWord(String source, String target) { List<CountEntity> list = countSizes(); if (null == list || list.isEmpty()) { @@ -226,9 +218,6 @@ WordHelper.generateWord(source, target, null, addList); } - /** - * 鍒涘缓 鐢ㄦ埛娴侀噺缁熻 Excel - */ public void createCountOperatesExcel(String source, String target) { List<CountEntity> list = countOperates(); if (null == list || list.isEmpty()) { @@ -246,9 +235,6 @@ ExcelHelper.writeToTemplate(source, target, map); } - /** - * 鍒涘缓 鏈嶅姟璋冪敤閲忕粺璁� Excel - */ public void createCountServicesExcel(String source, String target) { List<CountEntity> list = countServices(); if (null == list || list.isEmpty()) { @@ -266,9 +252,6 @@ ExcelHelper.writeToTemplate(source, target, map); } - /** - * 鍒涘缓 鏁版嵁閲忕粺璁� Excel - */ public void createCountSizesExcel(String source, String target) { List<CountEntity> list = countSizes(); if (null == list || list.isEmpty()) { @@ -287,9 +270,6 @@ ExcelHelper.writeToTemplate(source, target, map); } - /** - * 鑾峰彇涓嬭浇瀹炰綋绫� - */ private DownloadEntity getDownloadEntity(UserEntity ue, String file) { DownloadEntity de = new DownloadEntity(); de.setName(FileHelper.getFileName(file)); -- Gitblit v1.9.3