|
|
@@ -206,7 +206,6 @@ public class WarningNoticeLogController extends AbstractController {
|
|
|
backList.add(noticeLogVO);
|
|
|
}
|
|
|
//排序
|
|
|
- //backList.stream().sorted(Comparator.comparing(WarningNoticeLogVO::getTotalNum).reversed()).collect(Collectors.toList());
|
|
|
backList.sort(Comparator.comparing(WarningNoticeLogVO::getTotalNum).reversed());
|
|
|
}
|
|
|
return ResultData.success(backList);
|
|
|
@@ -236,13 +235,6 @@ public class WarningNoticeLogController extends AbstractController {
|
|
|
@GetMapping("/airCollect")
|
|
|
@ApiOperation("数据大屏,定位预警统计")
|
|
|
public ResultData airCollect(@Param("deptId") Integer deptId) {
|
|
|
- /*LambdaQueryWrapper<WarningNoticeLog> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
- queryWrapper.eq(WarningNoticeLog::getWarningType,3);
|
|
|
- //queryWrapper.gt(WarningNoticeLog::getCreateTime,LocalDateTime.now().minusMonths(1)).lt(WarningNoticeLog::getCreateTime,LocalDateTime.now()).orderByDesc(WarningNoticeLog::getCreateTime);
|
|
|
- queryWrapper.between(WarningNoticeLog::getCreateTime,LocalDateTime.now().minusMonths(1),LocalDateTime.now()).orderByDesc(WarningNoticeLog::getCreateTime);
|
|
|
- Page page = warningNoticeLogService.page(new Page(1, 20),queryWrapper);
|
|
|
- List<WarningNoticeLog> records = page.getRecords();*/
|
|
|
-
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("warningType",3);
|
|
|
map.put("startTime",LocalDateTime.now().minusMonths(1));
|
|
|
@@ -259,7 +251,6 @@ public class WarningNoticeLogController extends AbstractController {
|
|
|
public ResultData getDisposeCount() {
|
|
|
LambdaQueryWrapper<WarningNoticeLog> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(WarningNoticeLog::getWarningType, 3);
|
|
|
-// queryWrapper.eq(WarningNoticeLog::getCollegeId, tokenService.getLoginUser().getSysUser().getDeptId());
|
|
|
queryWrapper.eq(WarningNoticeLog::getDispose,0);
|
|
|
queryWrapper.eq(WarningNoticeLog::getIsDeleted, Boolean.FALSE);
|
|
|
queryWrapper.orderByDesc(WarningNoticeLog::getId);
|