From 02642d2fc0fd269d63f2482b80dbddabcf871281 Mon Sep 17 00:00:00 2001 From: ganhao Date: Fri, 15 May 2026 15:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E4=BB=A3=E5=8A=9E?= =?UTF-8?q?=E6=9C=AA=E8=AF=BB=E4=B8=AA=E6=95=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/enterprise/AppTodoItemController.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enterprise/AppTodoItemController.java b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enterprise/AppTodoItemController.java index a616c1fa..40ad799a 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enterprise/AppTodoItemController.java +++ b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/app/enterprise/AppTodoItemController.java @@ -37,7 +37,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo; public class AppTodoItemController extends BaseController { private final ITodoItemService todoItemService; - + private final IEnforcementEducationServicesService educationServicesService; /** @@ -108,29 +108,29 @@ public class AppTodoItemController extends BaseController { } /** - * 获取待办事项统计信息 + * 获取待办个数 * 返回普法服务、执法评价、执法预告的未读个数及总数 */ - @GetMapping("/statistics") - public R getStatistics() { + @GetMapping("/statisticsUnReadCount") + public R statisticsUnReadCount() { TodoStatisticsVo statistics = new TodoStatisticsVo(); - + // 1. 统计普法服务未读个数 Long pffwCount = educationServicesService.countUnreadEducationServices(); statistics.setPffwCount(pffwCount != null ? pffwCount : 0L); - + // 2. 执法评价未读个数(暂时默认为0) statistics.setZfpjCount(0L); - + // 3. 执法预告未读个数(暂时默认为0) statistics.setZfygCount(0L); - + // 4. 计算总未读个数 - Long totalCount = statistics.getPffwCount() - + statistics.getZfpjCount() + Long totalCount = statistics.getPffwCount() + + statistics.getZfpjCount() + statistics.getZfygCount(); statistics.setTotalCount(totalCount); - + return R.ok(statistics); } }