@ -358,7 +358,7 @@
auth_dept.name warehouseName
from auth_warehouse
inner join auth_dept on auth_warehouse.parentId = auth_dept.code
inner join auth_warehouse_user on auth_warehouse.code = auth_warehouse_user.code
LEFT join auth_warehouse_user on auth_warehouse.code = auth_warehouse_user.code
<where>
<if test="userId != null">
AND auth_warehouse_user.userId = #{userId}