From 1c3f11dfd7493a4c4a8d41e2499477840bcc070c Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期五, 19 五月 2023 15:01:46 +0800
Subject: [PATCH] 限制文件大小,用户,报案人审核筛选
---
src/main/resources/mapper/ReportDao.xml | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/ReportDao.xml b/src/main/resources/mapper/ReportDao.xml
index a11e47b..9cc3ee9 100644
--- a/src/main/resources/mapper/ReportDao.xml
+++ b/src/main/resources/mapper/ReportDao.xml
@@ -9,7 +9,7 @@
<where>
1=1
<if test="reportParamDto.people != ''">
- and (u.real_name like '%${reportParamDto.people}%' or u.user_idcard like '%${reportParamDto.people}%')
+ and (u.real_name like '%${reportParamDto.people}%')
</if>
<if test="reportParamDto.phoneNumber != ''">
and u.user_mobile like '%${reportParamDto.phoneNumber}%'
@@ -19,17 +19,18 @@
and r.report_materials is not null
</if>
<if test="reportParamDto.havaMaterial == 0">
- and r.report_materials is null
+ and (r.report_materials is null or r.report_materials='')
</if>
</if>
<if test="reportParamDto.isInGroup != null">
and r.is_in_group = ${reportParamDto.isInGroup}
</if>
+ and (r.status = 0 or r.status = 2)
</where>
order by r.ctime DESC
</select>
<select id="getReportListVoById" resultType="com.example.jz.modle.vo.ReportListVo">
- select u.user_mobile mobile, u.user_idcard idcard, u.real_name reporterName, r.*
+ select u.user_mobile mobile, u.user_idcard idcard, u.real_name reporterName, u.sex sex,r.*
from report r
join user u on r.user_id = u.id
where r.id = #{id}
@@ -90,4 +91,22 @@
) as reporter
</select>
+ <select id="selectListGroup" resultType="com.example.jz.modle.entity.Report">
+ SELECT
+ t1.*
+ FROM
+ report t1
+ LEFT JOIN group_user t2 ON t1.id = t2.user_id
+ where t1.user_id=#{id}
+ GROUP BY
+ t2.group_id
+ </select>
+ <select id="selectReportByReportId" resultType="com.example.jz.modle.entity.Report">
+ SELECT
+ *
+ FROM
+ `report`
+ WHERE id =#{id}
+ </select>
+
</mapper>
--
Gitblit v1.8.0