Commit 531d2a5c authored by chew's avatar chew

调整码查询客户信息

parent 49fd917c
......@@ -41,7 +41,7 @@ public class OutboundController {
return Result.success(outboundOrderService.listOrders(req));
}
/**
* 订单啊查询废弃
* 订单啊查询
* @param req
* @param userId
* @return
......@@ -138,6 +138,12 @@ public class OutboundController {
return Result.success(null);
}
/**
* 订单查询
* @param req
* @param userId
* @return
*/
@PostMapping("/orders/pending")
public Result<IPage<OrderWithPendingVo>> listOrdersWithPending(
@RequestBody @Valid OrderQueryReq req,
......
......@@ -79,6 +79,7 @@
'DONE',
'已完成',
ol.status) AS status_cn,
ol.status,
OL.GOODS_DESC,
OL.FACTORY_NAME
FROM T_DOC_outbound_scan_DETAIL ol
......@@ -111,7 +112,6 @@
ROUND(h.tally_lines / NULLIF(h.total_lines, 0) * 100, 1) AS progressPct,
h.status,
DECODE(h.status, 'PENDING','待理货','TALLYING','理货中','DONE','已完成', h.status) AS statusCn,
h.status ,
-- 未理货明细
(SELECT LISTAGG(ol.item_name || '(' || (ol.order_qty - ol.tally_qty) || ')', '; ')
WITHIN GROUP (ORDER BY ol.line_no)
......@@ -151,12 +151,9 @@
</select>
<select id="queryCustomer" resultType="com.ekingwin.tms_app.module.cargo.vo.CustomerVo">
SELECT
h.customer_id AS customerId,
h.customer_code AS customerId,
h.customer_name AS customerName,
h.address_no AS addressNo,
h.address AS customerAddr,
h.branch_id AS branchId,
h.branch_name AS branchName
h.CUSTOMER_ADDR AS customerAddr
FROM T_DOC_outbound_scan_HEADER h
WHERE h.order_no IN
<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