|
|
@@ -6,13 +6,21 @@
|
|
|
<!-- 查询各订单状态的数量 -->
|
|
|
<select id="selectOrderStatusCounts" resultType="org.dromara.order.domain.vo.OrderStatusStats">
|
|
|
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 = '4' THEN 1 ELSE 0 END) AS shippedCount,
|
|
|
- SUM(CASE WHEN order_status = '5' THEN 1 ELSE 0 END) AS completedCount,
|
|
|
- SUM(CASE WHEN order_status = '6' THEN 1 ELSE 0 END) AS closedCount,
|
|
|
- COUNT(*) AS totalCount
|
|
|
+ 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 shippedCount,
|
|
|
+ SUM(CASE WHEN order_status = '5' THEN 1 ELSE 0 END) AS completedCount,
|
|
|
+ SUM(CASE WHEN order_status = '6' THEN 1 ELSE 0 END) AS closedCount,
|
|
|
+ COUNT(*) AS totalCount
|
|
|
FROM order_main
|
|
|
WHERE del_flag = '0'
|
|
|
+ AND check_status = '1'
|
|
|
+ <if test="partnerId != null ">
|
|
|
+ AND assignee_id = #{partnerId}
|
|
|
+ </if>
|
|
|
+ <if test="supplierId != null ">
|
|
|
+ AND assignee_id = #{supplierId}
|
|
|
+ </if>
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<select id="selectEvaluationMainListPage" resultType="org.dromara.order.domain.vo.OrderEvaluationListVo">
|