From 433a24418d8507212b036ccc8effdd4f57d20c8e Mon Sep 17 00:00:00 2001 From: 安瑾然 <m17681517455@outlook.com> Date: 星期二, 21 二月 2023 14:15:34 +0800 Subject: [PATCH] fix:修改mybatis-plus日志打印方式,图片全路径获取函数修改 --- src/main/resources/mapper/ReportDao.xml | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/ReportDao.xml b/src/main/resources/mapper/ReportDao.xml index d83adb9..d3845e6 100644 --- a/src/main/resources/mapper/ReportDao.xml +++ b/src/main/resources/mapper/ReportDao.xml @@ -19,7 +19,7 @@ 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"> @@ -91,4 +91,15 @@ ) 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> + </mapper> -- Gitblit v1.8.0