diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/TestController.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/TestController.java index 66c443a2..95b99067 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/TestController.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/TestController.java @@ -15,8 +15,8 @@ public class TestController { @Autowired private PowerPileService powerPileService; - @GetMapping("test/{ono}/{b}/{gid}") - public R test(@PathVariable String ono, @PathVariable int b, @PathVariable String gid) throws NacosException { + @GetMapping("test/{pno}/{ono}/{b}/{gid}") + public R test(@PathVariable String pno, @PathVariable String ono, @PathVariable int b, @PathVariable String gid) throws NacosException { // String serverIp = "127.0.0.1"; // int serverPort = 8848; @@ -27,9 +27,10 @@ public class TestController { // String ipAndPort = GetIpAndPort.getIpAndPort(); StartChargingData d = new StartChargingData(); - d.setOrderNo(ono); //00000000000000000000000123456789 + d.setPileNo(pno); //55031412782305 d.setBalance(b); //300 d.setGunId(gid); //02 + d.setOrderNo(ono); //00000000000000000000000123456789 return powerPileService.startCharging(d); }