mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update TempController
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -322,8 +322,6 @@ public interface IOrderBasicInfoService {
|
||||
|
||||
Map<String, Object> payOrder(PayOrderDTO dto) throws Exception;
|
||||
|
||||
void batchRefund(QueryOrderDTO dto);
|
||||
|
||||
/**
|
||||
* 订单支付成功 支付回调
|
||||
* 支付成功后掉用这个方法
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 白名单支付订单逻辑
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user