From 6fdcc0c26dd33e87a024a69ed635d9aedb59cad6 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 07 一月 2020 12:02:50 +0800 Subject: [PATCH] 订单搜索引擎增量更新 --- fanli/src/main/java/com/yeshi/fanli/service/impl/jd/JDGoodsServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/jd/JDGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/jd/JDGoodsServiceImpl.java index 1ceee95..f4fd444 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/jd/JDGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/jd/JDGoodsServiceImpl.java @@ -86,7 +86,7 @@ @Cacheable(value = "jdSpecialCache", key = "'specialSearch-'+#page+'-'+#cid") @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public List<JDGoods> specialSearch(Integer page, Long cid) throws JDGoodsException { if (cid == null) { throw new JDGoodsException(1, "鍒嗙被id涓虹┖"); @@ -225,7 +225,7 @@ JDSearchFilter jdfilter = new JDSearchFilter(); jdfilter.setPageNo(page); jdfilter.setPageSize(Constant.PAGE_SIZE); - result = JDUtil.searchByKey(jdfilter); + result =JDApiUtil.getJingFenGoods(page,15); //JDUtil.searchByKey(jdfilter); } if (result != null && result.getGoodsList() != null) Collections.shuffle(result.getGoodsList()); -- Gitblit v1.8.0