|
|
@ -124,9 +124,10 @@ |
|
|
|
|
|
|
|
|
<select id="searchRollForOrderNo" resultType="SoReceiveBoxRollsData"> |
|
|
<select id="searchRollForOrderNo" resultType="SoReceiveBoxRollsData"> |
|
|
select ROW_NUMBER() OVER (ORDER BY b.received_date) orderId, b.id,b.site,b.bu_no, |
|
|
select ROW_NUMBER() OVER (ORDER BY b.received_date) orderId, b.id,b.site,b.bu_no, |
|
|
b.box_no,b.final_roll_no,b.roll_qty,b.received_by,b.received_date,b.WareHouseID,b.part_no |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.box_no,b.final_roll_no,b.roll_qty,b.received_by,b.received_date,b.WareHouseID,b.part_no, |
|
|
|
|
|
c.warehouse_id,c.batch_no,c.location_id |
|
|
from so_receive_boxes a left join so_receive_box_rolls b on a.site = b.site and a.box_no = b.box_no and a.bu_no = b.bu_no |
|
|
from so_receive_boxes a left join so_receive_box_rolls b on a.site = b.site and a.box_no = b.box_no and a.bu_no = b.bu_no |
|
|
|
|
|
left join inventory_stock c on b.site = c.site and b.final_roll_no = c.roll_no and b.bu_no = c.bu_no |
|
|
where a.site = #{site} and a.order_no = #{orderNo} and a.bu_no = #{buNo} |
|
|
where a.site = #{site} and a.order_no = #{orderNo} and a.bu_no = #{buNo} |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |