From 7cbbc5751470732d6f76eb24225ba1b7856da5e9 Mon Sep 17 00:00:00 2001 From: paulGao Date: Mon, 18 Jul 2022 12:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86es?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common-api/src/main/resources/application.yml | 1 + .../modules/search/serviceimpl/EsGoodsIndexServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common-api/src/main/resources/application.yml b/common-api/src/main/resources/application.yml index f139f9bd..eadf556f 100644 --- a/common-api/src/main/resources/application.yml +++ b/common-api/src/main/resources/application.yml @@ -122,6 +122,7 @@ ignored: - /common/common/slider/** - /common/common/sms/** - /common/common/logo + - /common/common/site - /druid/** - /swagger-ui.html - /doc.html 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 bc348f55..f0ec4a56 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 @@ -496,6 +496,7 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements log.info("更新商品索引的促销信息----------"); log.info("商品ids: {}", ids); log.info("活动: {}", promotion); + log.info("key: {}", key); for (String id : ids) { UpdateRequest updateRequest = this.updateEsGoodsIndexPromotions(id, promotion, key); if (updateRequest != null) { @@ -730,8 +731,6 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements promotionMap = goodsIndex.getOriginPromotionMap(); } - log.info("ES修改商品活动索引-活动信息:{}", promotion); - log.info("ES修改商品活动索引-活动信息状态:{}", promotion.getPromotionStatus()); log.info("ES修改商品活动索引-原商品索引信息:{}", goodsIndex); log.info("ES修改商品活动索引-原商品索引活动信息:{}", promotionMap); //如果活动已结束 @@ -760,6 +759,7 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements Map params = new HashMap<>(); params.put("promotionMap", JSONUtil.toJsonStr(promotionMap)); Script script = new Script(ScriptType.INLINE, "painless", "ctx._source.promotionMapJson=params.promotionMap;", params); + log.info("执行脚本内容:{}", script); updateRequest.script(script); return updateRequest; }