master:定时任务更新商品权重调整;

pull/1121/head
liujiang 2025-12-04 10:05:42 +08:00
parent 626ebde608
commit 6742cb0f78
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public class XktTask {
log.info("定时任务,批量更新商品权重到 ES 成功的 id列表: {}", bulkResponse.items().stream().map(BulkResponseItem::id).collect(Collectors.toList()));
// 有哪些没执行成功的,需要发飞书通知
List<String> successIdList = bulkResponse.items().stream().map(BulkResponseItem::id).collect(Collectors.toList());
List<String> unExeIdList = updateList.stream().map(String::valueOf).filter(x -> !successIdList.contains(x)).collect(Collectors.toList());
List<String> unExeIdList = updateList.stream().map(StoreProduct::getId).map(String::valueOf).filter(x -> !successIdList.contains(x)).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(unExeIdList)) {
fsNotice.sendMsg2DefaultChat("定时任务,批量更新商品权重到 ES 失败", "以下storeProdId未执行成功: " + unExeIdList);
}