委托方增加bug,oms线路修复,o-t报关修改

This commit is contained in:
赵辉
2026-06-16 21:34:08 +08:00
parent 280e465856
commit 2491fdbdd1
8 changed files with 18 additions and 5 deletions
@@ -201,8 +201,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-- GROUP BY child.MAIN_ORDER_NUM
-- ) tms_count ON tms_count.MAIN_ORDER_NUM = bdo.goods_number
SELECT bdo.*,
NVL(tms_count.total, 0) AS tms_order_status_count
NVL(tms_count.total, 0) AS tms_order_status_count,
NVL(tr.ROUTE_NAME, bdo.route) AS routeName
FROM business_document_order bdo
left join NGWL_TEST_WLHY.tms_route tr on tr.id = bdo.route
LEFT JOIN (
SELECT child.MAIN_ORDER_NUM, COUNT(1) AS total
FROM business_document_order child