update 重试订单退款接口

This commit is contained in:
2023-08-17 14:25:45 +08:00
parent 9a9f0b9d16
commit 999b7a704c
6 changed files with 89 additions and 1 deletions

View File

@@ -290,4 +290,24 @@ public class TempController extends BaseController {
}
return response;
}
/**
* 重试订单退款接口
* http://localhost:8080/temp/retryRefundOrder
*/
@PostMapping("/retryRefundOrder")
public RestApiResponse<?> retryRefundOrder(@RequestBody ApplyRefundDTO dto) {
RestApiResponse<?> response;
try {
orderBasicInfoService.retryRefundOrder(dto.getOrderCode());
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);
}
return response;
}
}