This commit is contained in:
parent
d32431708a
commit
bdfdcad109
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue