|
@@ -715,8 +715,8 @@
|
|
|
<!-- 产成品入库 -->
|
|
|
<insert id="addHalf">
|
|
|
insert into tld_half(wllb_code, produc_date, produc_batch, capacity, user_id, storage_location_code, scrq,
|
|
|
- serial, seq, attribute, storage_code, wbs)
|
|
|
- value (#{wllbCode},#{producDate},#{producDate},#{num},#{userId},#{storageLocationCode},now(),#{serial},#{seq},#{attribute},#{storageCode},#{wbs})
|
|
|
+ serial, seq, attribute, storage_code, wbs, production_code)
|
|
|
+ value (#{wllbCode},#{producDate},#{producDate},#{num},#{userId},#{storageLocationCode},now(),#{serial},#{seq},#{attribute},#{storageCode},#{wbs},#{productionCode})
|
|
|
</insert>
|
|
|
<!-- 查询虚拟表数据进行入库 -->
|
|
|
<select id="getVirtualNotice" resultType="com.tld.model.WarehousingVirtual">
|
|
@@ -855,7 +855,7 @@
|
|
|
<!-- 修改报工单入库数量 -->
|
|
|
<update id="updateNotice">
|
|
|
update tld_notice
|
|
|
- set warehousing_num = #{warehousingNum}
|
|
|
+ set warehousing_num = (warehousing_num + 0) + #{warehousingNum}
|
|
|
where notice_id = #{noticeId}
|
|
|
and material_id = #{materialId}
|
|
|
</update>
|