QueryChargeOrder 404
This commit is contained in:
parent
c51cc41e22
commit
044860b324
@ -62,6 +62,7 @@ public class QueryStartChargeController {
|
||||
gunStatus.put("orderNo", (String) res.getData());
|
||||
REDIS.setCacheMap("gunStatus:", gunStatus);
|
||||
}
|
||||
resp.setRet(String.valueOf(res.getCode()));
|
||||
}
|
||||
resp.setData(JSONUtil.toJSONString(startChargeResponse));
|
||||
return resp;
|
||||
|
||||
@ -420,11 +420,6 @@ public class XhpcPileOrderController extends BaseController {
|
||||
return userId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// private void rabbimt(String message) {
|
||||
// //发送消息队列
|
||||
// try {
|
||||
|
||||
@ -355,11 +355,10 @@ public class XhpcChargeOrderServiceImpl implements IXhpcChargeOrderService {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (chargingAmt == 0) chargingAmt = 500;
|
||||
|
||||
StartChargingData startChargingData = new StartChargingData();
|
||||
|
||||
startChargingData.setBalance(chargingAmt);
|
||||
//500000 equals 500 yuan
|
||||
startChargingData.setBalance(500000);
|
||||
|
||||
startChargingData.setGunId(connectorId);
|
||||
|
||||
@ -443,8 +442,8 @@ public class XhpcChargeOrderServiceImpl implements IXhpcChargeOrderService {
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<" + r1.getCode() + ">>>>>>>>>>>>>>>>>");
|
||||
logger.info("<<<<<<<<<<<<<<<<<<<<<<<<" + r1.getMsg() + ">>>>>>>>>>>>>>>>>");
|
||||
if (r1.getCode() != 200) {
|
||||
r1.setCode(500);
|
||||
return r1;
|
||||
r.setCode(500);
|
||||
return r;
|
||||
}
|
||||
int res = xhpcChargeOrderMapper.addBy3rd(internetSerialNumber, orderNo, driverId, chargingAmt, plateNum, status);
|
||||
System.out.println(res);
|
||||
|
||||
@ -494,11 +494,11 @@
|
||||
|
||||
insert into xhpc_charge_order
|
||||
(internet_serial_number,
|
||||
serial_num,
|
||||
driverId,
|
||||
chargingAmt,
|
||||
serial_number,
|
||||
driver_id,
|
||||
charging_amt,
|
||||
<if test="plateNum != null and plateNum != ''">
|
||||
plateNum,
|
||||
Plate_num,
|
||||
</if>
|
||||
status,source)
|
||||
values
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user