mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 支付宝小程序
This commit is contained in:
@@ -249,4 +249,26 @@ public class PersonPileController extends BaseController {
|
||||
/**
|
||||
* 个人桩启动充电
|
||||
*/
|
||||
|
||||
/**
|
||||
* 取消预约
|
||||
*/
|
||||
public RestApiResponse<?> canal(HttpServletRequest request, @RequestBody QueryPersonPileDTO dto) {
|
||||
logger.info("取消预约params:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String memberId = getMemberIdByAuthorization(request);
|
||||
dto.setMemberId(memberId);
|
||||
pileService.canalReserved(dto);
|
||||
response = new RestApiResponse<>();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("取消预约error", e);
|
||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("取消预约error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("取消预约result:{}", response);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user