This commit is contained in:
YAS\29473
2025-04-24 14:42:08 +08:00
parent 52e831969a
commit 6a4f0ba122
2 changed files with 53 additions and 42 deletions

View File

@@ -811,8 +811,28 @@ public class weiWangKuaiDianPlatformServiceImpl implements ThirdPartyPlatformSer
return result;
}
@Override
public String pushOrderInfo(QueryOrderDTO dto) {
ThirdPartySecretInfoVO wangKuaiDianPlatformSecretInfo = getweiWangKuaiDianPlatformSecretInfo();
// 根据站点id 开始时间,结束时间查询出所有的订单信息
// List<OrderListVO> orderListVOS = orderBasicInfoService.selectOrderBasicInfoList(dto);
List<String> orderCodes = orderBasicInfoService.tempGetOrderCodes(dto);
if (CollectionUtils.isEmpty(orderCodes)) {
return "订单信息为空";
}
// List<String> orderCodeList = orderListVOS.stream().map(OrderListVO::getOrderCode).collect(Collectors.toList());
for (String orderCode : orderCodes) {
try {
String result = notificationChargeOrderInfo(orderCode, wangKuaiDianPlatformSecretInfo);
log.info("订单:{} 推送结果:{}", orderCode, result);
}catch (Exception e) {
log.error("订单:{} 推送error, ", orderCode, e);
}
}
return "Success";
}
//TODO 扩展字段 vin
/**
* 推送订单数据 notificationChargeOrderInfo
* @param orderCode 订单编号