巡检首页接口

This commit is contained in:
2265829957@qq.com 2026-02-25 22:44:09 +08:00
parent 3b6a5efcd8
commit 1b0ec520b7

View File

@ -367,20 +367,20 @@
</select>
<select id="stationSum" resultType="int">
select count(*) from xhpc_charging_station where del_flag =0
select IFNULL((count(*),0) from xhpc_charging_station where del_flag =0
</select>
<select id="abnormalStation" resultType="int">
select count(inspection_id) from xhpc_inspection where data_time=#{time} and status=2
select IFNULL(count(inspection_id),0) from xhpc_inspection where data_time=#{time} and status=2
group by charging_station_id,data_time
</select>
<select id="todayOrder" resultType="int">
select count(*) from xhpc_history_order where DATE_FORMAT(end_time, '%Y-%m-%d') = #{time}
select IFNULL(count(*),0) from xhpc_history_order where DATE_FORMAT(end_time, '%Y-%m-%d') = #{time}
</select>
<select id="emptyOrderRate" resultType="int">
select count(*) from xhpc_history_order where DATE_FORMAT(end_time, '%Y-%m-%d') = #{time}
select IFNULL(count(*),0) from xhpc_history_order where DATE_FORMAT(end_time, '%Y-%m-%d') = #{time}
and (xh.total_price=0
or xh.stop_reason_evcs ='40'
or xh.stop_reason_evcs ='41'