用户绑定关系
This commit is contained in:
parent
45154d0add
commit
1cd7b21b41
|
|
@ -34,9 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN ma_type_keeper mtk ON mtk.type_id = mt.type_id
|
LEFT JOIN ma_type_keeper mtk ON mtk.type_id = mt.type_id
|
||||||
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="userId != null and userId != ''">
|
|
||||||
AND su.user_id = #{userId}
|
|
||||||
</if>
|
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
AND mt2.type_name like concat('%', #{typeName}, '%')
|
AND mt2.type_name like concat('%', #{typeName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -44,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND mt.type_name like concat('%', #{modelName}, '%')
|
AND mt.type_name like concat('%', #{modelName}, '%')
|
||||||
</if>
|
</if>
|
||||||
GROUP BY mt.type_id
|
GROUP BY mt.type_id
|
||||||
ORDER BY mt.type_id DESC
|
ORDER BY su.user_id DESC, mt.type_id DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getMaUserList" resultType="com.bonus.sgzb.base.domain.WarehouseKeeper">
|
<select id="getMaUserList" resultType="com.bonus.sgzb.base.domain.WarehouseKeeper">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue