This commit is contained in:
mashuai 2024-06-14 14:58:11 +08:00
parent 073227f5ac
commit 9cd15963dd
1 changed files with 9 additions and 2 deletions

View File

@ -76,6 +76,9 @@
JOIN ma_type mt2 ON mt2.type_id = mt.parent_id
JOIN ma_type mt3 ON mt3.type_id = mt2.parent_id
JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
WHERE
mt.`status` = '0'
AND mt.del_flag = '0'
<if test="keyWord != null and keyWord != ''">
and (
mt2.type_name like concat('%', #{keyWord}, '%') or
@ -97,8 +100,10 @@
JOIN ma_type mt3 ON mt3.type_id = mt2.parent_id
JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
WHERE
mt.`status` = '0'
AND mt.del_flag = '0'
<if test="id != null and id != ''">
mws.parent_id = #{id}
and mws.parent_id = #{id}
</if>
<if test="keyWord != null and keyWord != ''">
and (
@ -143,8 +148,10 @@
JOIN ma_type mt3 ON mt3.type_id = mt2.parent_id
JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
WHERE
mt.`status` = '0'
AND mt.del_flag = '0'
<if test="id != null and id != ''">
mws.parent_id = #{id}
and mws.parent_id = #{id}
</if>
</select>
<select id="selectId" resultType="com.bonus.sgzb.material.domain.TreeSelectId">