|
|
@@ -151,10 +151,10 @@
|
|
|
SELECT
|
|
|
COUNT(DISTINCT (t1.user_id)) chargeUsers,
|
|
|
COUNT(t1.id) totalOrders,
|
|
|
- SUM(t1.total_power) totalPower,
|
|
|
- SUM(t1.total_money) totalMoney,
|
|
|
- SUM(t1.elec_money) elecMoney,
|
|
|
- SUM(t1.service_money) serviceMoney
|
|
|
+ IFNULL (SUM(t1.total_power),0) totalPower,
|
|
|
+ IFNULL(SUM(t1.total_money),0) totalMoney,
|
|
|
+ IFNULL(SUM(t1.elec_money),0) elecMoney,
|
|
|
+ IFNULL(SUM(t1.service_money),0) serviceMoney
|
|
|
FROM
|
|
|
(SELECT
|
|
|
*
|