新增 后管批量手动退款临时接口

This commit is contained in:
Lemon
2025-03-07 09:39:00 +08:00
parent 50bc20e01b
commit d3f5db910b
4 changed files with 56 additions and 1 deletions

View File

@@ -727,4 +727,25 @@ public class TempController extends BaseController {
}
return response;
}
/**
* 重试订单退款接口/重试退款按钮 (批量)
* http://localhost:8080/order/retryRefundOrderBatch
*/
@PostMapping("/retryRefundOrderBatch")
public RestApiResponse<?> retryRefundOrderBatch(@RequestBody ApplyRefundDTO dto) {
RestApiResponse<?> response;
try {
orderBasicInfoService.retryRefundOrderList(dto.getOrderCoderList());
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;
}
}