|
|
@ -100,7 +100,12 @@ |
|
|
|
hdp.productcode materialCode, |
|
|
|
hdp.productcode materialCode, |
|
|
|
hdp.productname materialName, |
|
|
|
hdp.productname materialName, |
|
|
|
ad.mscsNum quantity, |
|
|
|
ad.mscsNum quantity, |
|
|
|
ad.mctsTruck trainNumber |
|
|
|
ad.mctsTruck trainNumber, |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
select create_time from ht_scan_log where unitNo = #{unitNo} and type = 1 or type = 4 and unitNo = #{unitNo} |
|
|
|
|
|
|
|
ORDER BY create_time desc |
|
|
|
|
|
|
|
limit 1 |
|
|
|
|
|
|
|
) warehouseEntryTimeEnd |
|
|
|
from ht_order_detail od |
|
|
|
from ht_order_detail od |
|
|
|
left join ht_advance_detail ad on ad.unitNo = od.unitNo |
|
|
|
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_warehouse w on w.id = od.now_warehouse_id |
|
|
@ -109,8 +114,9 @@ |
|
|
|
left join ht_cargo c on s.cargo_id = c.id |
|
|
|
left join ht_cargo c on s.cargo_id = c.id |
|
|
|
left join ht_tray_scan_des tsd on tsd.unitNo = od.unitNo |
|
|
|
left join ht_tray_scan_des tsd on tsd.unitNo = od.unitNo |
|
|
|
left join ht_tray t on t.id = tsd.tray_id |
|
|
|
left join ht_tray t on t.id = tsd.tray_id |
|
|
|
left join ht_tray_scan_des htsd on od.unitNo = htsd.unitNo |
|
|
|
left join ht_detail_product hdp on hdp.unit_no = od.unitNo |
|
|
|
where od.unitNo = #{unitNo} |
|
|
|
where od.unitNo = #{unitNo} |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|