'商品es初始化索引问题'

This commit is contained in:
fengtianyangyang 2021-12-20 14:56:17 +08:00
parent e8f44ef6f2
commit 23b3e72579

View File

@ -291,6 +291,9 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements
@Override @Override
public void initIndex(List<EsGoodsIndex> goodsIndexList) { public void initIndex(List<EsGoodsIndex> goodsIndexList) {
if (goodsIndexList == null || goodsIndexList.isEmpty()) { if (goodsIndexList == null || goodsIndexList.isEmpty()) {
//初始化标识
cache.put(CachePrefix.INIT_INDEX_PROCESS.getPrefix(), null);
cache.put(CachePrefix.INIT_INDEX_FLAG.getPrefix(), false);
return; return;
} }
//索引名称拼接 //索引名称拼接