update 预约充电

This commit is contained in:
Guoqs
2024-05-30 15:27:55 +08:00
parent 39d7eb40c3
commit e0b3ff3210
2 changed files with 4 additions and 1 deletions

View File

@@ -87,12 +87,13 @@ public class TempController extends BaseController {
try {
// 发送预约充电指令
pileRemoteService.reservedCharging(command);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_SUCCESS);
} catch (BusinessException e) {
logger.warn("预约充电测试warn", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("预约充电测试error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_DETAIL_ERROR);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_FAILED);
}
return response;