From ac475ca4567fc2544d964eefa850508417263c30 Mon Sep 17 00:00:00 2001 From: paulGao Date: Tue, 8 Mar 2022 12:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=83=E9=94=80=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search/serviceimpl/EsGoodsIndexServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/search/serviceimpl/EsGoodsIndexServiceImpl.java b/framework/src/main/java/cn/lili/modules/search/serviceimpl/EsGoodsIndexServiceImpl.java index 9eacac60..db1bc01c 100644 --- a/framework/src/main/java/cn/lili/modules/search/serviceimpl/EsGoodsIndexServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/search/serviceimpl/EsGoodsIndexServiceImpl.java @@ -636,6 +636,11 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements } else { promotionMap = goodsIndex.getPromotionMap(); } + + log.info("ES修改商品活动索引-活动信息:{}", promotion); + log.info("ES修改商品活动索引-活动信息状态:{}", promotion.getPromotionStatus()); + log.info("ES修改商品活动索引-原商品索引信息:{}", goodsIndex); + log.info("ES修改商品活动索引-原商品索引活动信息:{}", promotionMap); //如果活动已结束 if (promotion.getPromotionStatus().equals(PromotionsStatusEnum.END.name()) || promotion.getPromotionStatus().equals(PromotionsStatusEnum.CLOSE.name())) {//如果存在活动 //删除活动 @@ -643,6 +648,7 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements } else { promotionMap.put(key, promotion); } + log.info("ES修改商品活动索引-过滤后商品索引活动信息:{}", promotionMap); return this.getGoodsIndexPromotionUpdateRequest(goodsIndex.getId(), promotionMap); } @@ -678,7 +684,7 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements if (responses.hasFailures()) { log.info("批量更新商品索引的促销信息中出现部分异常:{}", responses.buildFailureMessage()); } else { - log.info("批量更新商品索引的促销信息结果:{}", responses.status()); + log.info("批量更新商品索引的促销信息结果:{}", responses); } } catch (IOException e) { log.error("批量更新商品索引的促销信息出现异常!", e);