|
|
|
@ -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()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|