|
|
|
@ -102,8 +102,8 @@
|
|
|
|
|
ad.firstPackName firsts, |
|
|
|
|
ad.secondPackName `second`, |
|
|
|
|
ad.thirdPackName thirdProduct, |
|
|
|
|
hdp.productcode materialCode, |
|
|
|
|
hdp.productname materialName, |
|
|
|
|
t.productcode materialCode, |
|
|
|
|
t.productname materialName, |
|
|
|
|
ad.mscsNum quantity, |
|
|
|
|
ad.mctsTruck trainNumber, |
|
|
|
|
( |
|
|
|
@ -112,13 +112,14 @@
|
|
|
|
|
limit 1 |
|
|
|
|
) warehouseEntryTimeEnd |
|
|
|
|
from ht_order_detail od |
|
|
|
|
left join ht_advance_detail ad on ad.unitNo = od.unitNo |
|
|
|
|
left join ht_warehouse w on w.id = od.now_warehouse_id |
|
|
|
|
left join ht_location l on od.location_id = l.id |
|
|
|
|
left join ht_shelf s on l.shelf_id = s.id |
|
|
|
|
left join ht_cargo c on s.cargo_id = c.id |
|
|
|
|
left join ht_detail_product hdp on hdp.unit_no = od.unitNo |
|
|
|
|
left join ht_advance_detail ad on ad.unitNo = od.unitNo and ad.delete_time = 0 |
|
|
|
|
left join ht_warehouse w on w.id = od.now_warehouse_id |
|
|
|
|
left join ht_location l on od.location_id = l.id |
|
|
|
|
left join ht_shelf s on l.shelf_id = s.id |
|
|
|
|
left join ht_cargo c on s.cargo_id = c.id |
|
|
|
|
left join (select unit_no,productcode,productname from ht_detail_product where unit_no= #{unitNo} limit 1) t on t.unit_no = ad.unitNo |
|
|
|
|
where od.unitNo = #{unitNo} |
|
|
|
|
and od.delete_time = 0 |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|