From a02e12dd9c36ebfc76530ee91a8c9e84837ce392 Mon Sep 17 00:00:00 2001 From: ZZ Date: Thu, 5 Aug 2021 19:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=85=85=E7=94=B5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/xhpc/pp/controller/TestController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }