新增 宁波平台批量补推订单接口

This commit is contained in:
Lemon
2024-12-17 10:21:47 +08:00
parent 6c85fe49f8
commit ac62831a53
5 changed files with 29 additions and 4 deletions

View File

@@ -974,12 +974,13 @@ public class ZhongDianLianPlatformServiceImpl implements ThirdPartyPlatformServi
ThirdPartySecretInfoVO ningBoSecretInfoVO = getNingBoSecretInfoVO();
// 根据站点id 开始时间,结束时间查询出所有的订单信息
List<OrderListVO> orderListVOS = orderBasicInfoService.selectOrderBasicInfoList(dto);
if (CollectionUtils.isEmpty(orderListVOS)) {
// 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 : orderCodeList) {
// List<String> orderCodeList = orderListVOS.stream().map(OrderListVO::getOrderCode).collect(Collectors.toList());
for (String orderCode : orderCodes) {
try {
String result = notificationChargeOrderInfo(orderCode, ningBoSecretInfoVO);
logger.info("订单:{} 推送结果:{}", orderCode, result);