From d130547c1f3b64cf8544261cdf1d9146ff319756 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 19 五月 2025 13:13:30 +0800
Subject: [PATCH] Merge branch 'dev-2.0.1' of http://120.76.84.145:10101/gitblit/r/java/zhihuishenqu into dev-2.0.1

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/ComplaintMapper.xml |   13 +++++++++++++
 1 files changed, 13 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 7b584c7..ce5d6c6 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
@@ -720,6 +720,19 @@
             <if test="5 == accountLevel">
                 and (sc.party_member_id = #{targetId} || sc.id in (select complaint_id from sgsb_complaint_audit_record where audit_type = 3 and audit_status = 1 and report_type = #{accountLevel} and superior_id = #{targetId}))
             </if>
+            <if test="query.timeType !=null">
+                <choose>
+                    <when test="query.timeType == 1">
+                        and date_sub(curdate(), INTERVAL 7 DAY) &lt;= date(sc.create_time)
+                    </when>
+                    <when test="query.timeType == 2">
+                        and date_sub(curdate(), INTERVAL 15 DAY) &lt;= date(sc.create_time)
+                    </when>
+                    <when test="query.timeType == 3">
+                        and date_sub(curdate(), INTERVAL 30 DAY) &lt;= date(sc.create_time)
+                    </when>
+                </choose>
+            </if>
         </where>
         ORDER BY sc.create_time DESC
     </select>

--
Gitblit v1.7.1