mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-13 14:30:08 +08:00
update
This commit is contained in:
@@ -91,8 +91,17 @@ public class PileRemoteController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/remoteStopCharging")
|
@PostMapping("/remoteStopCharging")
|
||||||
public AjaxResult remoteStopCharging(@RequestBody QueryPileDTO dto) {
|
public AjaxResult remoteStopCharging(@RequestBody QueryPileDTO dto) {
|
||||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode());
|
AjaxResult ajaxResult;
|
||||||
return AjaxResult.success();
|
try {
|
||||||
|
if (StringUtils.isBlank(dto.getPileSn()) || StringUtils.isBlank(dto.getConnectorCode())) {
|
||||||
|
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||||
|
}
|
||||||
|
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode());
|
||||||
|
ajaxResult = AjaxResult.success();
|
||||||
|
} catch (BusinessException e) {
|
||||||
|
ajaxResult = AjaxResult.error(e.getCode(), e.getMessage());
|
||||||
|
}
|
||||||
|
return ajaxResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user