wms成品库存明细页面,加成品销售手持提交改动添加出库字段

master
mengjiao 6 days ago
parent 02b96ef6c7
commit ef441a5676

@ -40,7 +40,15 @@ public class WmsFpStorageNewsSn extends BaseEntity {
*/
@Excel(name = "库位编码")
private String wlCode;
private String outAmount;
public String getOutAmount() {
return outAmount;
}
public void setOutAmount(String outAmount) {
this.outAmount = outAmount;
}
/**
*

@ -38,6 +38,7 @@
<result property="factoryCode" column="factory_code"/>
<result property="sapFactoryCode" column="sap_factory_code"/>
<result property="wlName" column="wl_name"/>
</resultMap>
<sql id="selectWmsFpStorageNewsVo">
@ -131,6 +132,7 @@
active_flag,
factory_code,
sap_factory_code,
wl_name
FROM
wms_fp_storage_news

@ -33,10 +33,11 @@
<result property="activeFlag" column="active_flag"/>
<result property="factoryCode" column="factory_code"/>
<result property="sapFactoryCode" column="sap_factory_code"/>
<result property="outAmount" column="outAmount"/>
</resultMap>
<sql id="selectWmsFpStorageNewsSnVo">
select storage_id, wh_code, wa_code, wl_code, order_no, product_name, product_code, sn, bar_code, amount, batch_number, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, user_defined7, user_defined8, user_defined9, user_defined10, create_by, gmt_create, last_modified_by, gmt_modified, active_flag, factory_code, sap_factory_code from wms_fp_storage_news_sn
select storage_id, wh_code, wa_code, wl_code, order_no, product_name, product_code, sn, bar_code, amount, batch_number, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, user_defined7, user_defined8, user_defined9, user_defined10, create_by, gmt_create, last_modified_by, gmt_modified, active_flag, factory_code, out_amount outAmount, sap_factory_code from wms_fp_storage_news_sn
</sql>
<select id="selectWmsFpStorageNewsSnList" parameterType="WmsFpStorageNewsSn" resultMap="WmsFpStorageNewsSnResult">
@ -374,7 +375,7 @@
</delete>
<update id="updateWmsFpStorageNewsSnOut">
UPDATE wms_fp_storage_news_sn
SET amount = COALESCE(amount, 0) - #{amount} -- 如果user_defined2为NULL则先将其设置为0再进行加法
SET out_amount = COALESCE(out_amount, 0)+ #{amount} -- 如果user_defined2为NULL则先将其设置为0再进行加法
WHERE storage_id = #{storageId}
AND active_flag = '1';
</update>

Loading…
Cancel
Save