| | |
| | | private C3ChargingService c3ChargingService; |
| | | |
| | | |
| | | @GetMapping("/C3ChargingList") |
| | | public ResponseVO<Object> C3ChargingList(BaseConditionVO baseConditionVO) { |
| | | return ResponseUtil.successPage(c3ChargingService.getC3ChargingList(baseConditionVO)); |
| | | @PostMapping("/C3ChargingList") |
| | | public ResponseVO<Object> C3ChargingList(BaseConditionVO baseConditionVO, @RequestBody(required = false) C3ChargingParam c3ChargingParam) { |
| | | return ResponseUtil.successPage(c3ChargingService.getC3ChargingListByKeyword(baseConditionVO, c3ChargingParam)); |
| | | } |
| | | |
| | | @PostMapping("/getByC3Mac/{c3Mac}") |
| | | public ResponseVO<Object> getByC3Mac(String c3Mac) { |
| | | return ResponseUtil.success(c3ChargingService.getByC3Mac(c3Mac)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/EndOfTheSynchronization") |
| | | public ResponseVO<Object> EndOfTheSynchronization(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.EndOfTheSynchronization(c3ChargingParam.getC3Mac()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | | } else { |
| | | return ResponseUtil.fail(result); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 二维码 |
| | | */ |
| | | @PostMapping("/QrCode") |
| | | public ResponseVO<Object> QrCode(@RequestBody C3ChargingParam c3ChargingParam) { |
| | | String result = c3ChargingService.QrCode(c3ChargingParam.getC3Mac(), c3ChargingParam.getQrCodeData()); |
| | | |
| | | if ("操作成功".equals(result)) { |
| | | return ResponseUtil.success(result); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 修改充电桩硬件设备名称 |
| | | * @param c3ChargingAddParam |
| | | * @return |
| | | */ |