mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update
This commit is contained in:
@@ -218,4 +218,11 @@ public interface OrderBasicInfoMapper {
|
||||
List<MerchantOrderInfoVO> getMerchantOrderInfoList(@Param("dto") QueryMerchantOrderDTO dto);
|
||||
|
||||
List<RefundOrder> batchRefundQuery(List<String> orderCodeList);
|
||||
|
||||
/**
|
||||
* 根据订单编号
|
||||
* @param orderCodeList 订单编号列表
|
||||
* @return
|
||||
*/
|
||||
List<OrderBasicInfo> queryOrderList(@Param("orderCodeList") List<String> orderCodeList);
|
||||
}
|
||||
|
||||
@@ -883,8 +883,26 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
}
|
||||
|
||||
// 根据交易日期查询运营商下面所有站点的交易日报
|
||||
List<SettleOrderReport> orderReports = settleOrderReportService.selectByMerchantIdAndDate(merchantId, tradeDate);
|
||||
|
||||
List<SettleOrderReport> stationReportList = settleOrderReportService.selectByMerchantIdAndDate(merchantId, tradeDate);
|
||||
for (SettleOrderReport orderReport : stationReportList) {
|
||||
String orderCodes = orderReport.getOrderCodes();
|
||||
if (StringUtils.isBlank(orderCodes)) {
|
||||
logger.warn("站点:{}, 日期:{}, 没有查到订单数据", orderReport.getStationId(), tradeDate);
|
||||
continue;
|
||||
}
|
||||
List<String> orderCodeList = Lists.newArrayList(StringUtils.split(orderCodes, ","));
|
||||
List<OrderBasicInfo> orderBasicInfos = queryOrderList(orderCodeList);
|
||||
if (CollectionUtils.isEmpty(orderBasicInfos)) {
|
||||
continue;
|
||||
}
|
||||
orderBasicInfos.parallelStream().forEach(x -> {
|
||||
try {
|
||||
doPaymentConfirm(x, adapayMemberAccount);
|
||||
} catch (Exception e) {
|
||||
logger.error("订单交易确认失败:{}", x.getOrderCode(), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -944,6 +962,19 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量查询订单
|
||||
* @param orderCodeList
|
||||
* @return
|
||||
*/
|
||||
public List<OrderBasicInfo> queryOrderList(List<String> orderCodeList) {
|
||||
List<OrderBasicInfo> resultList = Lists.newArrayList();
|
||||
if (CollectionUtils.isEmpty(orderCodeList)) {
|
||||
return resultList;
|
||||
}
|
||||
return orderBasicInfoMapper.queryOrderList(orderCodeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 临时订单退款
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user