From 852eef9db933119936a90096d125c6d6f824a6a4 Mon Sep 17 00:00:00 2001 From: lucky Date: Fri, 21 Jan 2022 15:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E7=97=85?= =?UTF-8?q?=E4=BE=8B=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper_dao/FirstAidDao.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/mapper_dao/FirstAidDao.xml b/src/main/resources/mapper_dao/FirstAidDao.xml index 25e2c94..41dcb7c 100644 --- a/src/main/resources/mapper_dao/FirstAidDao.xml +++ b/src/main/resources/mapper_dao/FirstAidDao.xml @@ -41,7 +41,7 @@ (m.create_user_id = #{userId} or m.create_user_type = 1) - m.record_user_id in (#{userId}, 0) + ((m.record_user_id = #{userId} and a.type = #{param.caseType}) or (m.record_user_id = 0)) @@ -52,7 +52,6 @@ and a.name like concat('%', #{param.name}, '%') - AND a.type = #{param.caseType} order by r2.answer IS NOT NULL,r2.answer DESC,a.created_at DESC