This commit is contained in:
haozq 2024-11-14 16:53:47 +08:00
parent d32431708a
commit bdfdcad109
1 changed files with 11 additions and 0 deletions

View File

@ -173,6 +173,17 @@
LEFT JOIN mm_type mt1 on mt.PARENT_ID=mt1.id and mt1.IS_ACTIVE=1
LEFT JOIN mm_type mt2 on mt1.PARENT_ID=mt2.id and mt2.IS_ACTIVE=1
WHERE mt.IS_ACTIVE=1 and mt.`LEVEL`=4
<if test="name!=null and name !=''">
and mt.name like concat('%',#{name},'%')
</if>
<if test="pName!=null and pName !=''">
and mt1.name like concat('%',#{pName},'%')
</if>
<if test="ppName!=null and ppName !=''">
and mt2.name like concat('%',#{ppName},'%')
</if>
ORDER BY mt.`NAME` desc
</select>