|
@@ -481,6 +481,16 @@
|
|
'0'),b.col_index desc
|
|
'0'),b.col_index desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectInvLocIdLotattList1" resultMap="InvLotLocIdLotattResult">
|
|
|
|
+ select inv.sku, s.desc1 as sku_name, sum(qty) as qty
|
|
|
|
+ from inv_lot_loc_id inv
|
|
|
|
+ left join base_location_info b on inv.location_id = b.id
|
|
|
|
+ left join base_location_zone z on b.zone_id = z.zone_id
|
|
|
|
+ left join base_sku s on inv.sku = s.sku
|
|
|
|
+ where b.zone_id in (1, 2, 3)
|
|
|
|
+ group BY inv.sku
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectInvLocIdLotattByLocationId" resultMap="InvLotLocIdLotattResult">
|
|
<select id="selectInvLocIdLotattByLocationId" resultMap="InvLotLocIdLotattResult">
|
|
select inv.location_id
|
|
select inv.location_id
|
|
, sk.sku
|
|
, sk.sku
|
|
@@ -903,7 +913,8 @@
|
|
|
|
|
|
<update id="moveInvByTraceIdOut">
|
|
<update id="moveInvByTraceIdOut">
|
|
update inv_lot_loc_id
|
|
update inv_lot_loc_id
|
|
- set location_id = #{locationTo},traceid = #{traceid}
|
|
|
|
|
|
+ set location_id = #{locationTo},
|
|
|
|
+ traceid = #{traceid}
|
|
where location_id = #{locationFrom}
|
|
where location_id = #{locationFrom}
|
|
|
|
|
|
</update>
|
|
</update>
|