Browse Source

执法端-代办消息修改

dev-V1.10.2-temp
niujiyi 3 months ago
parent
commit
32c6f61e38
  1. 36
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enforcement/AppEnfTodoItemController.java

36
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enforcement/AppEnfTodoItemController.java

@ -85,39 +85,25 @@ public class AppEnfTodoItemController extends BaseController {
// 3. 执法预告未读个数(暂时默认为0) // 3. 执法预告未读个数(暂时默认为0)
statistics.setZfygCount(0L); statistics.setZfygCount(0L);
// 4. 计算总未读个数 //4. 统计执法预告
Long totalCount = statistics.getPffwCount()
+ statistics.getZfpjCount()
+ statistics.getZfygCount();
statistics.setTotalCount(totalCount);
return R.ok(statistics);
}
/**
* 获取代办个数
* 返回执法预告,执法任务,执法预约的未读个数及总数
*/
@SaIgnore
@GetMapping("/statisticsUnReadCountForEnforcement")
public R<TodoStatisticsVo> statisticsUnReadCountForEnforcement() {
TodoStatisticsVo statistics = new TodoStatisticsVo();
//1. 统计执法预告
Long zfygCount = cpNoticeMessageService.countUnreadNoticeMessageForCurrentUser(); Long zfygCount = cpNoticeMessageService.countUnreadNoticeMessageForCurrentUser();
statistics.setZfygCount(zfygCount != null ? zfygCount : 0L); statistics.setZfygCount(zfygCount != null ? zfygCount : 0L);
//2. 统计执法任务 //5. 统计执法任务
Long zfrwCount = efcodeCpTaskService.countUnreadTasksForCurrentUser(); Long zfrwCount = efcodeCpTaskService.countUnreadTasksForCurrentUser();
statistics.setZfrwCount(zfrwCount != null ? zfrwCount : 0L); statistics.setZfrwCount(zfrwCount != null ? zfrwCount : 0L);
//3. 统计执法预约 //6. 统计执法预约
Long zfyqCount = efcodeCpReserveService.countUnreadReservesForCurrentUser(); Long zfyqCount = efcodeCpReserveService.countUnreadReservesForCurrentUser();
statistics.setZfyqCount(zfyqCount != null ? zfyqCount : 0L); statistics.setZfyqCount(zfyqCount != null ? zfyqCount : 0L);
Long totalCount = statistics.getZfygCount() // 7. 计算总未读个数
+ statistics.getZfrwCount() Long totalCount = statistics.getPffwCount()
+ statistics.getZfyqCount(); + statistics.getZfpjCount()
+ statistics.getZfygCount()
+ statistics.getZfygCount()
+ statistics.getZfrwCount()
+ statistics.getZfyqCount();
statistics.setTotalCount(totalCount); statistics.setTotalCount(totalCount);
return R.ok(statistics); return R.ok(statistics);
} }
} }

Loading…
Cancel
Save