Commit 531d2a5c authored by chew's avatar chew

调整码查询客户信息

parent 49fd917c
...@@ -41,7 +41,7 @@ public class OutboundController { ...@@ -41,7 +41,7 @@ public class OutboundController {
return Result.success(outboundOrderService.listOrders(req)); return Result.success(outboundOrderService.listOrders(req));
} }
/** /**
* 订单啊查询废弃 * 订单啊查询
* @param req * @param req
* @param userId * @param userId
* @return * @return
...@@ -138,6 +138,12 @@ public class OutboundController { ...@@ -138,6 +138,12 @@ public class OutboundController {
return Result.success(null); return Result.success(null);
} }
/**
* 订单查询
* @param req
* @param userId
* @return
*/
@PostMapping("/orders/pending") @PostMapping("/orders/pending")
public Result<IPage<OrderWithPendingVo>> listOrdersWithPending( public Result<IPage<OrderWithPendingVo>> listOrdersWithPending(
@RequestBody @Valid OrderQueryReq req, @RequestBody @Valid OrderQueryReq req,
......
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
'DONE', 'DONE',
'已完成', '已完成',
ol.status) AS status_cn, ol.status) AS status_cn,
ol.status,
OL.GOODS_DESC, OL.GOODS_DESC,
OL.FACTORY_NAME OL.FACTORY_NAME
FROM T_DOC_outbound_scan_DETAIL ol FROM T_DOC_outbound_scan_DETAIL ol
...@@ -111,7 +112,6 @@ ...@@ -111,7 +112,6 @@
ROUND(h.tally_lines / NULLIF(h.total_lines, 0) * 100, 1) AS progressPct, ROUND(h.tally_lines / NULLIF(h.total_lines, 0) * 100, 1) AS progressPct,
h.status, h.status,
DECODE(h.status, 'PENDING','待理货','TALLYING','理货中','DONE','已完成', h.status) AS statusCn, DECODE(h.status, 'PENDING','待理货','TALLYING','理货中','DONE','已完成', h.status) AS statusCn,
h.status ,
-- 未理货明细 -- 未理货明细
(SELECT LISTAGG(ol.item_name || '(' || (ol.order_qty - ol.tally_qty) || ')', '; ') (SELECT LISTAGG(ol.item_name || '(' || (ol.order_qty - ol.tally_qty) || ')', '; ')
WITHIN GROUP (ORDER BY ol.line_no) WITHIN GROUP (ORDER BY ol.line_no)
...@@ -151,12 +151,9 @@ ...@@ -151,12 +151,9 @@
</select> </select>
<select id="queryCustomer" resultType="com.ekingwin.tms_app.module.cargo.vo.CustomerVo"> <select id="queryCustomer" resultType="com.ekingwin.tms_app.module.cargo.vo.CustomerVo">
SELECT SELECT
h.customer_id AS customerId, h.customer_code AS customerId,
h.customer_name AS customerName, h.customer_name AS customerName,
h.address_no AS addressNo, h.CUSTOMER_ADDR AS customerAddr
h.address AS customerAddr,
h.branch_id AS branchId,
h.branch_name AS branchName
FROM T_DOC_outbound_scan_HEADER h FROM T_DOC_outbound_scan_HEADER h
WHERE h.order_no IN WHERE h.order_no IN
<foreach item="orderid" collection="orderids" open="(" separator="," close=")"> <foreach item="orderid" collection="orderids" open="(" separator="," close=")">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment