Browse Source

修改分页问题和火情查询接口报错问题

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
21e25e039b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/query/QueryWarningPageListService.java

+ 5
- 3
tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/query/QueryWarningPageListService.java View File

Date startTime = null; Date startTime = null;
Date endTime = null; Date endTime = null;
if (StringUtils.isNotEmpty(query.getStartTime()) && StringUtils.isNotEmpty(query.getEndTime())) { if (StringUtils.isNotEmpty(query.getStartTime()) && StringUtils.isNotEmpty(query.getEndTime())) {
startTime = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SSS,query.getStartTime()+" 00:00:00");
endTime = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SSS,query.getEndTime()+" 23:59:59");
startTime = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS,query.getStartTime()+" 00:00:00");
endTime = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS,query.getEndTime()+" 23:59:59");
} }
query.setWaringStartTime(startTime); query.setWaringStartTime(startTime);
query.setWaringEndTime(endTime); query.setWaringEndTime(endTime);
} }
return vo; return vo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
pageData.setPages(warningPageData.getPages());
pageData.setRecords(collect); pageData.setRecords(collect);

pageData.setTotal(warningPageData.getTotal());
pageData.setCurrent(warningPageData.getCurrent());
return JsonResult.success(pageData); return JsonResult.success(pageData);
} }
} }

Loading…
Cancel
Save