| | |
| | | |
| | | @ApiOperation(value = "测试",tags = {"硬件接口"}) |
| | | @GetMapping(value = "/test") |
| | | public R test() { |
| | | public R test(String code) { |
| | | String orderNum = "2024092646526785213546"; |
| | | String deviceId = "3401231001200202"; |
| | | Long orderId = 2024065544L; |
| | |
| | | PlatformStartCharging platformStartCharging = new PlatformStartCharging(); |
| | | platformStartCharging.setTransaction_serial_number(orderNum); |
| | | platformStartCharging.setCharging_pile_code(deviceId); |
| | | platformStartCharging.setCharging_gun_code("02"); |
| | | platformStartCharging.setCharging_gun_code(code); |
| | | platformStartCharging.setCard_number(orderId.toString()); |
| | | platformStartCharging.setAccount_balance(money); |
| | | String message = iotMessageProduce.sendMessage(platformStartCharging.getCharging_pile_code(), ServiceIdMenu.PLATFORM_START_CHARGING.getKey(), messageUtil.platformStartCharging(platformStartCharging)); |
| | |
| | | |
| | | @ApiOperation(value = "测试",tags = {"硬件接口"}) |
| | | @GetMapping(value = "/stop") |
| | | public R test1() { |
| | | public R test1(String code) { |
| | | PlatformStopCharging platformStopCharging = new PlatformStopCharging(); |
| | | platformStopCharging.setCharging_pile_code("3401231001200202"); |
| | | platformStopCharging.setCharging_gun_code("02"); |
| | | platformStopCharging.setCharging_gun_code(code); |
| | | String message = iotMessageProduce.sendMessage(platformStopCharging.getCharging_pile_code(), ServiceIdMenu.PLATFORM_STOP_CHARGING.getKey(),messageUtil.platformStopCharging(platformStopCharging)); |
| | | return R.ok(message); |
| | | } |