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}