From 885f3fae53b158660ff0fe239b352850dfa4c61e Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期二, 21 三月 2023 14:58:23 +0800 Subject: [PATCH] 被拒绝返回数据接口 --- src/main/resources/mapper/ReportDao.xml | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/ReportDao.xml b/src/main/resources/mapper/ReportDao.xml index 2cf4f1b..c5917a8 100644 --- a/src/main/resources/mapper/ReportDao.xml +++ b/src/main/resources/mapper/ReportDao.xml @@ -25,7 +25,7 @@ <if test="reportParamDto.isInGroup != null"> and r.is_in_group = ${reportParamDto.isInGroup} </if> - and r.status = 0 + and (r.status = 0 or r.status = 2) </where> order by r.ctime DESC </select> @@ -91,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