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