update 批量退款接口

This commit is contained in:
2023-07-10 15:49:54 +08:00
parent 5b7cfa9009
commit c271ad249d
7 changed files with 91 additions and 0 deletions

View File

@@ -145,4 +145,27 @@ public class JumpController extends BaseController {
return response;
}
/**
* 批量退款接口
* http://localhost:8080/app-xcx-h5/batchRefund
* @param dto
* @return
*/
@PostMapping("/batchRefund")
public RestApiResponse<?> batchRefund(@RequestBody QueryOrderDTO dto) {
RestApiResponse<?> response = null;
try {
orderBasicInfoService.batchRefund(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<>(ReturnCodeEnum.CODE_WEIXIN_REFUND_ERROR);
}
logger.info("临时刷数据接口 result:{}", JSONObject.toJSONString(response));
return response;
}
}