mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update
This commit is contained in:
@@ -91,8 +91,17 @@ public class PileRemoteController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/remoteStopCharging")
|
||||
public AjaxResult remoteStopCharging(@RequestBody QueryPileDTO dto) {
|
||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode());
|
||||
return AjaxResult.success();
|
||||
AjaxResult ajaxResult;
|
||||
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