bug
This commit is contained in:
parent
fc4e97d591
commit
d1ed28a088
|
|
@ -22,11 +22,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="getMaintenanceGangInfoAll" resultType="com.bonus.sgzb.base.domain.MaintenanceGang">
|
<select id="getMaintenanceGangInfoAll" resultType="com.bonus.sgzb.base.domain.MaintenanceGang">
|
||||||
SELECT mt.type_id as modelId ,mt.type_name as modelName,
|
SELECT mt.type_id as modelId ,
|
||||||
mt2.type_id, mt2.type_name as typeName,
|
mt.type_name as modelName,
|
||||||
mt3.type_id as typeId,mt3.type_name,
|
mt2.type_id,
|
||||||
mt3.type_id as kindId,mt4.type_name as kindName,
|
mt2.type_name as typeName,
|
||||||
su.user_id as userId, su.nick_name as userName
|
mt3.type_id as typeId,
|
||||||
|
mt3.type_id as kindId,
|
||||||
|
mt4.type_name as kindName,
|
||||||
|
su.user_id as userId,
|
||||||
|
su.nick_name as userName
|
||||||
FROM ma_type mt
|
FROM ma_type mt
|
||||||
LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id AND mt2.`level` = '3'
|
LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id AND mt2.`level` = '3'
|
||||||
LEFT JOIN ma_type mt3 ON mt2.parent_id = mt3.type_id AND mt3.`level` = '2'
|
LEFT JOIN ma_type mt3 ON mt2.parent_id = mt3.type_id AND mt3.`level` = '2'
|
||||||
|
|
@ -35,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_user su ON su.user_id = mtk.user_id
|
LEFT JOIN sys_user su ON su.user_id = mtk.user_id
|
||||||
WHERE mt.`level` = '4' AND mt.`del_flag` = '0'
|
WHERE mt.`level` = '4' AND mt.`del_flag` = '0'
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
AND mt3.type_name like concat('%', #{typeName}, '%')
|
AND mt2.type_name like concat('%', #{typeName}, '%')
|
||||||
</if>
|
</if>
|
||||||
ORDER BY mt.type_id DESC
|
ORDER BY mt.type_id DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue