|
@@ -2343,7 +2343,7 @@
|
|
|
<select id="getStatisticsTenantView" parameterType="com.zhongzheng.modules.top.order.bo.TopOrderStatisticsViewBo"
|
|
|
resultType="com.zhongzheng.modules.top.order.vo.TopOrderStatisticsTwoVo">
|
|
|
SELECT
|
|
|
- COUNT(DISTINCT a.order_id) AS orderNum,
|
|
|
+ COUNT(DISTINCT a.order_sn) AS orderNum,
|
|
|
SUM(a.money) AS money,
|
|
|
any_value(a.timeStr) AS orderTime,
|
|
|
any_value(a.create_username) AS create_username,
|
|
@@ -2359,6 +2359,7 @@
|
|
|
</if>
|
|
|
FROM (
|
|
|
SELECT
|
|
|
+ too.order_sn as order_sn,
|
|
|
too.order_id as order_id,
|
|
|
too.check_time as timeStr,
|
|
|
too.order_received - too.order_refunded as money,
|
|
@@ -2387,6 +2388,7 @@
|
|
|
</if>
|
|
|
UNION ALL
|
|
|
SELECT
|
|
|
+ o.order_sn as order_sn,
|
|
|
o.order_id as order_id,
|
|
|
o.create_time as timeStr,
|
|
|
og.goods_received as money,
|