非重载命名
This commit is contained in:
parent
946caa1f63
commit
12a33e6219
@ -285,7 +285,7 @@ public class ChargingController {
|
||||
}
|
||||
|
||||
@GetMapping("native/charging/stop/{pileNo}/{connectorId}/{version}")
|
||||
public R stopInvalidOrder(@PathVariable("pileNo") String pileNo, @PathVariable("connectorId") String connectorId,
|
||||
public R stopCharging(@PathVariable("pileNo") String pileNo, @PathVariable("connectorId") String connectorId,
|
||||
@PathVariable("version") String version) {
|
||||
|
||||
ClientHandler handler = ChargingPileServer.getHandler(pileNo);
|
||||
|
||||
@ -154,7 +154,7 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
Integer vul = (Integer) cachePile.get("voltageUpperLimits");
|
||||
Integer cul = (Integer) cachePile.get("currentLimit");
|
||||
if (wc > cul || wv > vul) {
|
||||
R r = chargingController.stopInvalidOrder(pileNo, gunId, default_version);
|
||||
R r = chargingController.stopCharging(pileNo, gunId, default_version);
|
||||
if (r.getCode() == 200) {
|
||||
Integer vcpcnt = (Integer) cacheOrder.get("vcpcnt");
|
||||
cacheOrder.put("vcpcnt", vcpcnt == null ? 1 : vcpcnt++);
|
||||
@ -163,7 +163,7 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
} else {
|
||||
Integer stopSoc = (Integer) cacheOrder.get("stopSoc");
|
||||
if (stopSoc != null && socInt >= stopSoc) {
|
||||
R r = chargingController.stopInvalidOrder(pileNo, gunId, default_version);
|
||||
R r = chargingController.stopCharging(pileNo, gunId, default_version);
|
||||
String alerted = (String) cacheOrder.get("socalerted");
|
||||
String tel = (String) cacheOrder.get("tel");
|
||||
if (alerted == null && tel != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user