增加运维统计-->未推送订单统计
This commit is contained in:
parent
a561055df8
commit
11ca4ebf0b
@ -236,12 +236,12 @@ public class XhpcPileRegularInspectServiceImpl extends BaseService implements IX
|
||||
String chargingStationId = map.get("chargingStationId").toString();
|
||||
Map<String, Object> cachePile = redisService.getCacheMap("pile:" + serialNumber);
|
||||
if(cachePile==null || cachePile.get("rateModelId") ==null){
|
||||
R r = workOrderService.addNewOrder("14","费率不一致","该桩费率和场站设置的费率不一致","",chargingStationId,"PILE",serialNumber);
|
||||
R r = workOrderService.addNewOrder("13","费率不一致","该桩费率和场站设置的费率不一致","",chargingStationId,"PILE",serialNumber);
|
||||
}else{
|
||||
String rateModelId = cachePile.get("rateModelId").toString();
|
||||
System.out.println("============rateModelId===================="+rateModelId);
|
||||
if(!modelId.equals(rateModelId)){
|
||||
R r = workOrderService.addNewOrder("14","费率不一致","该桩费率和场站设置的费率不一致","",chargingStationId,"PILE",serialNumber);
|
||||
R r = workOrderService.addNewOrder("13","费率不一致","该桩费率和场站设置的费率不一致","",chargingStationId,"PILE",serialNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1628,7 +1628,7 @@
|
||||
<select id="getToday" resultType="int">
|
||||
select count(history_order_id) number
|
||||
from xhpc_history_order
|
||||
where source =1 and create_time >= #{time}
|
||||
where source =1 and create_time >= #{time} and confirm_Result !=0
|
||||
<if test="tenantId !=null and '' !=tenantId">
|
||||
and tenant_id=#{tenantId}
|
||||
</if>
|
||||
@ -1671,7 +1671,7 @@
|
||||
FROM xhpc_history_order xho
|
||||
LEFT JOIN xhpc_charging_station xcs on xcs.charging_station_id = xho.charging_station_id
|
||||
<if test="status==null">
|
||||
where (xho.confirm_Result !=0
|
||||
where ((xho.confirm_Result !=0 and xho.source =1)
|
||||
or xho.history_order_id >(select last_push_order from et_auth_sec_token where id=2))
|
||||
</if>
|
||||
<if test="status==0">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user