|
@@ -154,11 +154,11 @@
|
154
|
154
|
<insert id="insertStckMgntBaseInfo" >
|
155
|
155
|
/* StockMngMapper.insertStckMgntBaseInfo */
|
156
|
156
|
INSERT INTO stck_mgnt_base_info
|
157
|
|
- (brand_id, whs_id, location, item_id, unit, stck_qty, prp_stck_qty, sft_stck_rt, cur_stck_rt,
|
|
157
|
+ (brand_id, whs_id, location, item_id, unit, stck_qty, wait_qty, prp_stck_qty, sft_stck_rt, cur_stck_rt,
|
158
|
158
|
sys_reg_dttm, sys_reg_id, sys_chg_dttm, sys_chg_id)
|
159
|
159
|
VALUES
|
160
|
160
|
(#{entity.brandId}, #{entity.whsId}, #{entity.location}, #{entity.itemId}, #{entity.unit}, #{entity.stckQty},
|
161
|
|
- #{entity.prpStckQty}, #{entity.sftStckRt}, #{entity.curStckRt},
|
|
161
|
+ #{entity.waitQty}, #{entity.prpStckQty}, #{entity.sftStckRt}, #{entity.curStckRt},
|
162
|
162
|
NOW(), #{userId}, NOW(), #{userId})
|
163
|
163
|
</insert>
|
164
|
164
|
|
|
@@ -188,6 +188,18 @@
|
188
|
188
|
AND item_id = #{entity.itemId}
|
189
|
189
|
</update>
|
190
|
190
|
|
|
191
|
+ <update id="updateStckMgntBaseInfo4Delete" >
|
|
192
|
+ /* StockMngMapper.updateStckMgntBaseInfo4Delete */
|
|
193
|
+ UPDATE stck_mgnt_base_info SET
|
|
194
|
+ del_yn = 'Y',
|
|
195
|
+ sys_chg_dttm = NOW(),
|
|
196
|
+ sys_chg_id = #{userId}
|
|
197
|
+ WHERE brand_id = #{entity.brandId}
|
|
198
|
+ AND whs_id = #{entity.whsId}
|
|
199
|
+ AND location = #{entity.location}
|
|
200
|
+ AND item_id = #{entity.itemId}
|
|
201
|
+ </update>
|
|
202
|
+
|
191
|
203
|
<insert id="insertStckMgntDtlHist" >
|
192
|
204
|
/* StockMngMapper.insertStckMgntDtlHist */
|
193
|
205
|
INSERT INTO stck_mgnt_dtl_hist
|