update TempController

This commit is contained in:
2023-08-26 19:31:36 +08:00
parent d68f2b89e4
commit 2dc33f0870
3 changed files with 1 additions and 25 deletions

View File

@@ -124,7 +124,7 @@ public class TempController extends BaseController {
public RestApiResponse<?> batchRefund(@RequestBody QueryOrderDTO dto) {
RestApiResponse<?> response = null;
try {
orderBasicInfoService.batchRefund(dto);
// orderBasicInfoService.batchRefund(dto);
response = new RestApiResponse<>();
} catch (BusinessException e) {
logger.warn("临时订单退款接口 warn", e);

View File

@@ -322,8 +322,6 @@ public interface IOrderBasicInfoService {
Map<String, Object> payOrder(PayOrderDTO dto) throws Exception;
void batchRefund(QueryOrderDTO dto);
/**
* 订单支付成功 支付回调
* 支付成功后掉用这个方法

View File

@@ -2740,28 +2740,6 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
return resultMap;
}
@Override
public void batchRefund(QueryOrderDTO dto) {
if (CollectionUtils.isEmpty(dto.getOrderCodeList())) {
return;
}
List<RefundOrder> list = orderBasicInfoMapper.batchRefundQuery(dto.getOrderCodeList());
if (CollectionUtils.isEmpty(list)) {
return;
}
ApplyRefundDTO weChatRefundDTO = null;
for (RefundOrder refundOrder : list) {
if (StringUtils.isBlank(refundOrder.getRefundAmount())) {
continue;
}
weChatRefundDTO = new ApplyRefundDTO();
weChatRefundDTO.setOrderCode(refundOrder.getOrderCode());
weChatRefundDTO.setRefundAmount(new BigDecimal(refundOrder.getRefundAmount()));
// TODO 2023年8月17日这个接口不能用了需要给DTO设置merchantKey
this.refundOrderWithAdapay(weChatRefundDTO);
}
}
/**
* 白名单支付订单逻辑
*