修改 部门 仓库问题

master
wangwei 2 years ago
parent 5d1875ebb9
commit df4d51cbba

@ -146,7 +146,7 @@
parameterType="com.glxp.api.entity.auth.InvWarehouseEntity">
replace
INTO auth_warehouse
( id, code, `name`, parentId, remark, defaultInv, advanceType, parentCode
( id, code, `name`, parentId, remark, defaultInv, advanceType, spUse,parentCode
, thirdId, thirdId1, thirdId2, thirdId3, thirdId4)
values (#{id},
#{code},
@ -155,6 +155,7 @@
#{remark},
#{defaultInv},
#{advanceType},
#{spUse},
#{parentCode},
#{thirdId},
#{thirdId1},

@ -41,9 +41,14 @@
<select id="selectByThrDeptCode" parameterType="com.glxp.api.req.thrsys.FilterThrSubInvWarehouseRequest"
resultType="com.glxp.api.entity.thrsys.ThrInvWarehouseEntity">
select * from thr_inv_warehouse where parentId not in (SELECT code FROM thr_dept
select * from thr_inv_warehouse
<where>
parentId not in (SELECT code FROM thr_dept
where status=#{status} and thirdSysFk=#{thirdSysFk}) and thirdSysFk=#{thirdSysFk}
<if test=" name != '' and name != null">
and name like concat('%',#{name},'%')
</if>
</where>
</select>

Loading…
Cancel
Save