修改终端统计,放开订单结算短信通知
This commit is contained in:
parent
e6dcae2021
commit
1662362567
@ -1201,24 +1201,24 @@ public class XhpcRealTimeOrderServiceImpl extends BaseService implements IXhpcRe
|
||||
public void run() {
|
||||
try{
|
||||
logger.info("<<<<<<<<<<<<<<<<进行入短信发送>>>>>>>>>>>>>>>>>");
|
||||
// if(!UserTypeUtil.INTERNET_TYPE.equals(source)){
|
||||
// if(userMessage !=null && userMessage.get("phone") != null){
|
||||
// if("1".equals(xhpcChargingPile.get("type").toString())){
|
||||
// HashMap<String, String> paramMap = new HashMap<>();
|
||||
// paramMap.put("elec", xhpcChargeOrder.getEndSoc());
|
||||
// paramMap.put("sumMoney", balance.toString());
|
||||
// paramMap.put("phone", userMessage.get("phone").toString());
|
||||
// paramMap.put("content", "【小华停止充电】尊敬的用户,你的爱车已停止充电,电量为:" + xhpcChargeOrder.getEndSoc() + "%,总费用为:" + balance + "元,充电费用明细,请查询小华充电小程序,谢谢。");
|
||||
// smsService.sendNotice(paramMap);
|
||||
// }else {
|
||||
// HashMap<String, String> paramMap = new HashMap<>();
|
||||
// paramMap.put("sumMoney", balance.toString());
|
||||
// paramMap.put("phone", userMessage.get("phone").toString());
|
||||
// paramMap.put("content", "【小华停止充电】尊敬的用户,你的爱车已停止充电,总费用为:" + balance.toString() + "元,充电费用明细,请查询小华充电小程序,谢谢。");
|
||||
// smsService.sendNotice(paramMap);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if(!UserTypeUtil.INTERNET_TYPE.equals(source)){
|
||||
if(userMessage !=null && userMessage.get("phone") != null){
|
||||
if("1".equals(xhpcChargingPile.get("type").toString())){
|
||||
HashMap<String, String> paramMap = new HashMap<>();
|
||||
paramMap.put("elec", xhpcChargeOrder.getEndSoc());
|
||||
paramMap.put("sumMoney", balance.toString());
|
||||
paramMap.put("phone", userMessage.get("phone").toString());
|
||||
paramMap.put("content", "【小华停止充电】尊敬的用户,你的爱车已停止充电,电量为:" + xhpcChargeOrder.getEndSoc() + "%,总费用为:" + balance + "元,充电费用明细,请查询小华充电小程序,谢谢。");
|
||||
smsService.sendNotice(paramMap);
|
||||
}else {
|
||||
HashMap<String, String> paramMap = new HashMap<>();
|
||||
paramMap.put("sumMoney", balance.toString());
|
||||
paramMap.put("phone", userMessage.get("phone").toString());
|
||||
paramMap.put("content", "【小华停止充电】尊敬的用户,你的爱车已停止充电,总费用为:" + balance.toString() + "元,充电费用明细,请查询小华充电小程序,谢谢。");
|
||||
smsService.sendNotice(paramMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.info("<<<<<<<<<<<<<<<<发送短信失败>>>>>>>>>>>>>>>>>");
|
||||
}
|
||||
|
||||
@ -434,7 +434,10 @@
|
||||
terminal_id as terminalId,
|
||||
name as terminalName
|
||||
from xhpc_terminal
|
||||
where 1=1
|
||||
where del_flag =0
|
||||
<if test="chargingStationId!=null">
|
||||
and charging_station_id=#{chargingStationId}
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and charging_station_id in (select charging_station_id from xhpc_charging_station where operator_id=#{userId})
|
||||
</if>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user