|
|
|
@ -198,6 +198,7 @@
|
|
|
|
|
SELECT basic_bussiness_type.*
|
|
|
|
|
FROM basic_bussiness_type
|
|
|
|
|
left JOIN auth_user_bustype ON basic_bussiness_type.action = auth_user_bustype.scAction
|
|
|
|
|
left join auth_warehouse on auth_user_bustype.subInvCode = auth_warehouse.`code`
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND basic_bussiness_type.name LIKE concat('%', #{name}, '%')
|
|
|
|
@ -224,6 +225,9 @@
|
|
|
|
|
<if test="invCode != ''and invCode != null">
|
|
|
|
|
AND subInvCode = #{invCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="deptCode != ''and deptCode != null">
|
|
|
|
|
AND auth_warehouse.parentId = #{deptCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != ''and userId != null">
|
|
|
|
|
AND auth_user_bustype.`userId` = #{userId}
|
|
|
|
|
</if>
|
|
|
|
|