mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-24 00:59:43 +08:00
update
This commit is contained in:
@@ -1053,4 +1053,26 @@ public class TempController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 单个会员批量绑定车牌号
|
||||
*/
|
||||
@PostMapping("/batchBindCarNumber")
|
||||
public RestApiResponse<?> batchBindCarNumber(@RequestBody CarNumberBindDTO dto) {
|
||||
logger.info("单个会员批量绑定车牌号, param:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
tempService.batchBindCarNumber(dto);
|
||||
response = new RestApiResponse<>();
|
||||
} catch (BusinessException e) {
|
||||
logger.warn("单个会员批量绑定车牌号 warn", e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("单个会员批量绑定车牌号 error", e);
|
||||
response = new RestApiResponse<>("00300002", "单个会员批量绑定车牌号异常");
|
||||
}
|
||||
logger.info("单个会员批量绑定车牌号, result:{}", JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user