|
@@ -670,7 +670,7 @@
|
|
|
GROUP BY
|
|
|
too.old_customer_id UNION ALL
|
|
|
SELECT
|
|
|
- SUM( o.order_price ) AS money,
|
|
|
+ SUM( o.pay_price ) AS money,
|
|
|
o.tenant_id AS customer_id,
|
|
|
( SELECT tenant_name FROM sys_tenant st WHERE st.tenant_id = o.tenant_id LIMIT 1 ) AS customer_name
|
|
|
FROM
|
|
@@ -719,7 +719,7 @@
|
|
|
</if>
|
|
|
) + (
|
|
|
SELECT
|
|
|
- SUM( o.order_price ) AS money
|
|
|
+ SUM( o.pay_price ) AS money
|
|
|
FROM
|
|
|
`order` o
|
|
|
WHERE
|
|
@@ -862,7 +862,7 @@
|
|
|
</if>
|
|
|
) + (
|
|
|
SELECT
|
|
|
- SUM( o.order_price ) AS money
|
|
|
+ SUM( o.pay_price ) AS money
|
|
|
FROM
|
|
|
`order` o
|
|
|
WHERE
|
|
@@ -952,7 +952,7 @@
|
|
|
SELECT
|
|
|
o.order_id as order_id,
|
|
|
o.create_time as timeStr,
|
|
|
- o.order_price as money
|
|
|
+ o.pay_price as money
|
|
|
FROM
|
|
|
`order` o
|
|
|
WHERE
|
|
@@ -1028,7 +1028,7 @@
|
|
|
SELECT
|
|
|
2 AS orderType,
|
|
|
COUNT(o.order_id) AS orderNum,
|
|
|
- SUM( o.order_price ) AS money,
|
|
|
+ SUM( o.pay_price ) AS money,
|
|
|
o.tenant_id AS customer_id,
|
|
|
( SELECT tenant_name FROM sys_tenant st WHERE st.tenant_id = o.tenant_id LIMIT 1 ) AS customer_name
|
|
|
FROM
|
|
@@ -2093,7 +2093,7 @@
|
|
|
SELECT
|
|
|
o.order_id as order_id,
|
|
|
o.create_time as timeStr,
|
|
|
- o.order_price as money,
|
|
|
+ o.pay_price as money,
|
|
|
null as create_username,
|
|
|
st.tenant_name
|
|
|
FROM
|