修改电站详情统计今日充电量的SQL
This commit is contained in:
parent
7c442093c7
commit
8440605479
@ -835,7 +835,7 @@
|
||||
</select>
|
||||
|
||||
<select id="getXhpcRateTimeOrderStatistics" resultType="java.util.Map">
|
||||
select IF(SUM(charging_degree) IS NULL, 0, charging_degree) as chargingDegreeSum,
|
||||
select IF(SUM(charging_degree) IS NULL, 0, SUM(charging_degree)) as chargingDegreeSum,
|
||||
COUNT(real_time_order_id) as realTimeOrderIdCount,
|
||||
COUNT(DISTINCT user_id) as userIdCount
|
||||
from xhpc_real_time_order
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user