From 21488a55ba76ae4f1296b608fbcdf1f06036db64 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 15 五月 2025 22:19:25 +0800 Subject: [PATCH] 用户端统计分析接口 --- 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) <= date(sc.create_time) + </when> + <when test="query.timeType == 2"> + and date_sub(curdate(), INTERVAL 15 DAY) <= date(sc.create_time) + </when> + <when test="query.timeType == 3"> + and date_sub(curdate(), INTERVAL 30 DAY) <= date(sc.create_time) + </when> + </choose> + </if> </where> ORDER BY sc.create_time DESC </select> -- Gitblit v1.7.1