|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="findWaybillInfoListByBillladingId" resultType="com.logpm.trunkline.vo.TrunklineBillladingWaybillVO"> |
|
|
|
|
select ltb.billlading_code billadingCode, |
|
|
|
|
ltbw.waybill_id waybillId, |
|
|
|
|
ltbw.waybill_no waybillNo, |
|
|
|
|
ltad.waybill_id waybillId, |
|
|
|
|
ltad.waybill_no waybillNo, |
|
|
|
|
ltbw.id billladingWaybillId, |
|
|
|
|
lww.create_time openOrderTime, |
|
|
|
|
lww.goods_name goodsName, |
|
|
|
@ -44,12 +44,18 @@
|
|
|
|
|
ltbw.plan_num planNum, |
|
|
|
|
ltbw.real_num realNum, |
|
|
|
|
ltbw.billlading_fee billladingFee, |
|
|
|
|
lww.collect_pay collectPay |
|
|
|
|
lww.collect_pay collectPay, |
|
|
|
|
count(ltad.id) scanNum |
|
|
|
|
from logpm_trunkline_billlading_waybill ltbw |
|
|
|
|
left join logpm_trunkline_billlading_package ltbp on ltbw.billlading_id = ltbp.billlading_id |
|
|
|
|
left join logpm_trunkline_advance_detail ltad on ltad.order_package_code = ltbp.order_package_code and ltad.waybill_id = ltbw.waybill_id |
|
|
|
|
left join logpm_trunkline_billlading ltb on ltb.id = ltbw.billlading_id |
|
|
|
|
left join logpm_warehouse_waybill lww on lww.waybill_no = ltbw.waybill_no |
|
|
|
|
where ltbw.billlading_id = #{billladingId} |
|
|
|
|
and ltbw.is_deleted = 0 |
|
|
|
|
group by ltb.billlading_code, |
|
|
|
|
ltbw.waybill_id, |
|
|
|
|
ltbw.waybill_no |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<update id="updateDataByBillladingWaybillId" > |
|
|
|
|