修改待办数量统计

main
zhaokai 2026-02-12 14:45:09 +08:00
parent e53f3ebf7c
commit 725747cc82
2 changed files with 13 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public class AppFireCheckListController {
public PageResponse<FireCheckListCO> checkList(@RequestBody FireCheckListPageQry qry) {
return fireCheckListService.appCheckList(qry);
}
@ApiOperation("获取待排查数量")
@ApiOperation("获取待排查数量和打回数量")
@PostMapping("/checkListCount")
public SingleResponse<Integer> checkListCount(@RequestBody FireCheckListPageQry qry) {
return SingleResponse.of(fireCheckListService.checkListCount(qry));

View File

@ -152,12 +152,22 @@ public class FireCheckListQueryExe {
}
public Integer checkListCount(FireCheckListPageQry qry) {
//待办数
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
PageResponse<FireCheckListDO> pageResponse = fireCheckListRepository.appCheckList(params);
if (CollUtil.isEmpty(pageResponse.getData())) {
//打回的数量
Map<String, Object> backParams = PageQueryHelper.toHashMap(qry);
backParams.put("userId",AuthContext.getUserId());
PageResponse<FireCheckListDO> backPageResponse = fireCheckListRepository.getBackChecKList(backParams);
if (CollUtil.isEmpty(pageResponse.getData()) && CollUtil.isEmpty(backPageResponse.getData())) {
return 0;
}else{
return pageResponse.getTotalCount();
return pageResponse.getTotalCount()+backPageResponse.getTotalCount();
}
}