diff --git a/hzims-service/inspect/pom.xml b/hzims-service/inspect/pom.xml
index 4d1f307..10d46e5 100644
--- a/hzims-service/inspect/pom.xml
+++ b/hzims-service/inspect/pom.xml
@@ -32,6 +32,12 @@
com.hnac.hzims
safeproduct-api
+
+
+ easypoi-spring-boot-starter
+ cn.afterturn
+
+
com.hnac.hzims
@@ -40,6 +46,12 @@
com.hnac.hzims
hzims-operational-api
+
+
+ easypoi-base
+ cn.afterturn
+
+
com.hnac.hzims
@@ -92,11 +104,17 @@
+
+
+
+
+
+
- com.alibaba
- easyexcel
- 2.2.7
+ cn.afterturn
+ easypoi-spring-boot-starter
+
com.itextpdf
diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/entity/InspectMonthReportExcel.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/entity/InspectMonthReportExcel.java
index 3a0d9f4..2d52683 100644
--- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/entity/InspectMonthReportExcel.java
+++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/entity/InspectMonthReportExcel.java
@@ -4,7 +4,6 @@ import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;
-import org.apache.poi.ss.usermodel.FillPatternType;
import java.util.Date;
@@ -13,11 +12,9 @@ import java.util.Date;
*/
@ApiModel(value = "巡检月报-Excel-导出")
@Data
-@HeadStyle(fillPatternType = FillPatternType.SOLID_FOREGROUND, fillForegroundColor = 22)
@HeadRowHeight(45)
@ColumnWidth(20)
@ContentRowHeight(80)
-@ContentStyle(wrapped = true)
public class InspectMonthReportExcel {
@ExcelProperty(value = "用户名称", index = 0)
diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/service/imp/InspectReportServiceImpl.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/service/imp/InspectReportServiceImpl.java
index 86481af..e7dd2b3 100644
--- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/service/imp/InspectReportServiceImpl.java
+++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/report/service/imp/InspectReportServiceImpl.java
@@ -11,16 +11,16 @@ import com.hnac.hzinfo.inspect.report.mapper.InspectReportMapper;
import com.hnac.hzinfo.inspect.report.service.InspectReportService;
import com.hnac.hzinfo.inspect.report.vo.AlarmRoutReportVO;
import com.hnac.hzinfo.inspect.report.vo.AlarmTaskGatherReportVO;
+import org.springblade.core.tool.utils.DateUtil;
import org.springblade.core.tool.utils.Func;
import org.springblade.system.user.cache.UserCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import java.time.LocalDate;
import java.time.LocalDateTime;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.time.YearMonth;
+import java.util.*;
import java.util.stream.Collectors;
@Service
@@ -81,7 +81,7 @@ public class InspectReportServiceImpl implements InspectReportService {
reportExcel.setTaskNum(entry.getValue().getTaskNum());
result.add(reportExcel);
}
- return result;
+ return result.stream().sorted(Comparator.comparing(r -> LocalDate.parse(r.getTime(), DateUtil.DATE_FORMATTER))).collect(Collectors.toList());
}
/**