用户绑定关系

This commit is contained in:
sxu 2024-11-25 16:12:25 +08:00
parent 45154d0add
commit 1cd7b21b41
1 changed files with 1 additions and 4 deletions

View File

@ -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 sys_user su ON su.user_id = mtk.user_id
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 != ''">
AND mt2.type_name like concat('%', #{typeName}, '%')
</if>
@ -44,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND mt.type_name like concat('%', #{modelName}, '%')
</if>
GROUP BY mt.type_id
ORDER BY mt.type_id DESC
ORDER BY su.user_id DESC, mt.type_id DESC
</select>
<select id="getMaUserList" resultType="com.bonus.sgzb.base.domain.WarehouseKeeper">