加钟项目列表

This commit is contained in:
曹磊 2024-09-03 19:52:31 +08:00
parent 55cfec2ad6
commit ea67495eac
1 changed files with 5 additions and 2 deletions

View File

@ -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
<if test="artificerId!=null">
and m.massage_type_id not in (select massage_type_id from artificer_massage where artificer_id=#{artificerId})
</if>
<if test="status!=null and status!=0">
and m.status=#{status}
</if>
<if test="parentId==null or parentId==0">
and (m.parent_id is null or m.parent_id=0)
</if>
<if test="parentId!=null and parentId!=0">
and m.parent_id=#{parentId}
</if>