巡检首页接口
This commit is contained in:
parent
3b6a5efcd8
commit
1b0ec520b7
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user