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