|
@@ -48,7 +48,8 @@
|
|
|
<select id="countOrderNum" resultType="org.dromara.order.domain.vo.OrderCountVo">
|
|
<select id="countOrderNum" resultType="org.dromara.order.domain.vo.OrderCountVo">
|
|
|
SELECT SUM(CASE WHEN order_status = '0' THEN 1 ELSE 0 END) AS pendingPaymentCount,
|
|
SELECT SUM(CASE WHEN order_status = '0' THEN 1 ELSE 0 END) AS pendingPaymentCount,
|
|
|
SUM(CASE WHEN order_status = '2' THEN 1 ELSE 0 END) AS pendingShipmentCount,
|
|
SUM(CASE WHEN order_status = '2' THEN 1 ELSE 0 END) AS pendingShipmentCount,
|
|
|
- SUM(CASE WHEN order_status = '4' THEN 1 ELSE 0 END) AS pendingReceiptCount
|
|
|
|
|
|
|
+ SUM(CASE WHEN order_status = '4' THEN 1 ELSE 0 END) AS pendingReceiptCount,
|
|
|
|
|
+ SUM(CASE WHEN is_need_check = '0' AND check_status = '0' THEN 1 ELSE 0 END) AS pendingapprovalCount
|
|
|
FROM order_main
|
|
FROM order_main
|
|
|
WHERE customer_id = #{customerId}
|
|
WHERE customer_id = #{customerId}
|
|
|
<if test="userId != null ">
|
|
<if test="userId != null ">
|