启动充电测试

This commit is contained in:
ZZ 2021-08-05 19:07:17 +08:00
parent 8ac066fb13
commit a02e12dd9c

View File

@ -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);
}