fix:测试问题修复:样品库、报告
This commit is contained in:
@@ -9,4 +9,58 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="selectListWithPermission" resultType="com.zt.plat.module.qms.business.config.dal.dataobject.ConfigWarehouseLocationDO">
|
||||
select
|
||||
t.id as id,
|
||||
t.PRN_ID as parentId,
|
||||
t.NAME as name,
|
||||
t.CD as code,
|
||||
t.SRT_NO as sortNo,
|
||||
t.CPY as capacity,
|
||||
t.MAIN_DEPT_ID as mainDepartmentId,
|
||||
t.MAIN_DEPT_NAME as mainDepartmentName,
|
||||
t.DAT_TP as dataType,
|
||||
t.WRH_TP as warehouseType,
|
||||
t.SYS_DEPT_CD as systemDepartmentCode,
|
||||
t.RMK as remark,
|
||||
t.PRNT_TMPL as printTemplate
|
||||
from T_CFG_WRH_LOC t
|
||||
<where>
|
||||
<if test="param.dataType != null and param.dataType != ''">
|
||||
and t.DAT_TP = #{param.dataType}
|
||||
</if>
|
||||
<if test="param.warehouseType != null and param.warehouseType != ''">
|
||||
and t.WRH_TP = #{param.warehouseType}
|
||||
</if>
|
||||
<if test="param.permissionFilterFlag != null and param.permissionFilterFlag != ''">
|
||||
and (
|
||||
<if test="param.roleIds != null and param.roleIds.size > 0">
|
||||
exists(
|
||||
select 1
|
||||
from T_CFG_PERM p
|
||||
where t.ID = p.SRC_ID
|
||||
and p.SRC_TP = #{param.srcPermissionType}
|
||||
and p.TGT_ID in (
|
||||
<foreach item="item" collection="param.roleIds" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
and p.TGT_TP = 'role'
|
||||
and p.DELETED = 0
|
||||
)
|
||||
or
|
||||
</if>
|
||||
not exists(
|
||||
select 1 from T_CFG_PERM p where t.ID = p.SRC_ID
|
||||
and p.SRC_TP = #{param.srcPermissionType}
|
||||
and p.DELETED = 0
|
||||
)
|
||||
)
|
||||
</if>
|
||||
and t.DELETED = 0
|
||||
|
||||
</where>
|
||||
order by t.SRT_NO asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user