From afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 02 十二月 2023 10:38:27 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/PriOnline2Mapper.xml |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/PriOnline2Mapper.xml b/src/main/resources/mapper/PriOnline2Mapper.xml
index 6a1cc3d..dee724a 100644
--- a/src/main/resources/mapper/PriOnline2Mapper.xml
+++ b/src/main/resources/mapper/PriOnline2Mapper.xml
@@ -75,4 +75,36 @@
         ORDER BY id DESC
     </select>
 
+    <select id="listByAll" resultMap="NoDataResultMap">
+        SELECT
+        *
+        FROM man_pri_online2 mp
+        WHERE 1=1
+        and
+            mp.id in
+            (
+            select
+            pri_online2_id
+            from man_pri_online2_foll
+            where 1=1
+            and user_id = #{userId}
+            )
+        ORDER BY id DESC
+    </select>
+
+    <select id="listByAllTotal" resultType="java.lang.Integer">
+        SELECT
+        count (1)
+        FROM man_pri_online2 mp
+        WHERE 1=1
+        and
+            mp.id in
+            (
+            select
+            pri_online2_id
+            from man_pri_online2_foll
+            where 1=1
+            and user_id = #{userId}
+            )
+    </select>
 </mapper>

--
Gitblit v1.9.1