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/resources/mapper/sy/ArdSyCarMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
index b1e3574..cf822fd 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
@@ -126,4 +126,11 @@
         inner join ard_tank_lock atl on "asc".car_id = atl.car_id
         where "asc".car_id = #{carId}
     </select>
+    <select id="getCountByCarIdList" resultType="java.lang.Long">
+        select count(*) from ard_sy_car "asc"
+        where "asc".car_id in
+        <foreach item="carId" collection="carIdList" open="(" separator="," close=")">
+            #{carId}
+        </foreach>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3