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