From 811b14aa5cd2bd6d4313b43dc38ce87cd938f3b0 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: 星期二, 23 七月 2024 17:12:42 +0800
Subject: [PATCH] 优化:通道同步任务 增加:根据用户统计未读总数

---
 ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java b/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
index 9f38bea..a0779aa 100644
--- a/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
+++ b/ard-work/src/main/java/com/ruoyi/call/controller/ArdCallHistoryController.java
@@ -4,6 +4,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import com.ruoyi.call.service.IArdCallUnreadMessagesService;
 import com.ruoyi.common.annotation.Anonymous;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -39,6 +40,8 @@
 public class ArdCallHistoryController extends BaseController {
     @Autowired
     private IArdCallHistoryService ardCallHistoryService;
+    @Autowired
+    private IArdCallUnreadMessagesService ardCallUnreadMessagesService;
 
     /**
      * 鏌ヨ浼氳瘽娑堟伅鍒楄〃
@@ -85,4 +88,10 @@
     public AjaxResult remove(@PathVariable String[] ids) {
         return toAjax(ardCallHistoryService.deleteArdCallHistoryByIds(ids));
     }
+
+    @ApiOperation("鑾峰彇鏈娑堟伅鎬绘暟")
+    @GetMapping("/getTotalUnreadCount")
+    public AjaxResult getTotalUnreadCount(String userId) {
+        return AjaxResult.success(ardCallUnreadMessagesService.totalUnReadCount(userId));
+    }
 }

--
Gitblit v1.9.3