仓库信息中 增加是否被供应商使用

master
wangwei 2 years ago
parent cafab71220
commit fd95c48a17

@ -22,4 +22,5 @@ public class InvSubWarehouseResponse {
private String parentCode; private String parentCode;
private String parentInvName; private String parentInvName;
private Boolean advanceType; private Boolean advanceType;
private Boolean spUse;
} }

@ -134,7 +134,7 @@
parameterType="com.glxp.api.entity.auth.InvWarehouseEntity"> parameterType="com.glxp.api.entity.auth.InvWarehouseEntity">
replace replace
INTO auth_warehouse 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) , thirdId, thirdId1, thirdId2, thirdId3, thirdId4)
values (#{id}, values (#{id},
#{code}, #{code},
@ -143,6 +143,7 @@
#{remark}, #{remark},
#{defaultInv}, #{defaultInv},
#{advanceType}, #{advanceType},
#{spUse},
#{parentCode}, #{parentCode},
#{thirdId}, #{thirdId},
#{thirdId1}, #{thirdId1},
@ -204,6 +205,9 @@
<if test="advanceType != null"> <if test="advanceType != null">
advanceType=#{advanceType}, advanceType=#{advanceType},
</if> </if>
<if test="spUse != null">
spUse=#{spUse},
</if>
</trim> </trim>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
@ -270,7 +274,8 @@
a.thirdId4, a.thirdId4,
b.name as parentName, b.name as parentName,
a.parentCode, a.parentCode,
c.name parentInvName c.name parentInvName,
a.spUse
FROM auth_warehouse a FROM auth_warehouse a
left join auth_dept b on a.parentId = b.code left join auth_dept b on a.parentId = b.code
left join auth_warehouse c on a.parentCode = c.code left join auth_warehouse c on a.parentCode = c.code

Loading…
Cancel
Save