From ea67495eac5998a6604d9f30c5393a696ab43238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 3 Sep 2024 19:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E9=92=9F=E9=A1=B9=E7=9B=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/artificer/MassageTypeDao.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/artificer/MassageTypeDao.xml b/src/main/resources/mapper/artificer/MassageTypeDao.xml index 8d61125..dbb227a 100644 --- a/src/main/resources/mapper/artificer/MassageTypeDao.xml +++ b/src/main/resources/mapper/artificer/MassageTypeDao.xml @@ -97,13 +97,16 @@ )) as massageScore from massage_type m left join sys_dict s on s.id=m.classify_id - where m.parent_id != 0 + where 1=1 - and m.massage_type_id not in (select massage_type_id from artificer_massage where artificer_id=#{artificerId}) + and m.massage_type_id not in (select massage_type_id from artificer_massage where artificer_id=#{artificerId}) and m.status=#{status} + + and (m.parent_id is null or m.parent_id=0) + and m.parent_id=#{parentId}