From f11e462285c8542a1364c55995434ede9a433b30 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 24 二月 2025 00:08:14 +0800
Subject: [PATCH] 首页接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml
index d13f60b..9402348 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml
@@ -125,4 +125,22 @@
             sc.id = #{id}
         </where>
     </select>
+    <select id="getTodoList" resultType="com.panzhihua.sangeshenbian.model.vo.ComplaintTodoVO">
+        SELECT sc.id,
+        sc.description_title,
+        sc.closing_time,
+        su.image_url
+        FROM sgsb_complaint sc
+        LEFT JOIN sys_user su  ON su.user_id = sc.create_by
+        <where>
+            sc.status = 0
+            <if test="isSuperior == 1 and targetId != null">
+                AND sc.superior_id = #{targetId}
+            </if>
+            <if test="isSuperior == 0 and targetId != null">
+                AND sc.create_by = #{targetId}
+            </if>
+        </where>
+        ORDER BY sc.create_time DESC
+    </select>
 </mapper>

--
Gitblit v1.7.1