库管员绑定页面支持按库管员进行查询

This commit is contained in:
liang.chao 2024-11-22 09:49:36 +08:00
parent ecbb572cf0
commit 65cc304229
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ 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>