按部门获取仓单据类型

test
anthonywj 2 years ago
parent ed4dc216bb
commit 9904fff69f

@ -122,4 +122,5 @@ public class FilterBussinessTypeRequest extends ListPageRequest {
* , 12
*/
private Integer editType;
private String deptCode;
}

@ -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>

Loading…
Cancel
Save