From ff6961414b1c3d369f07adeb92ecf8ea33eebe15 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期日, 28 四月 2019 12:30:45 +0800 Subject: [PATCH] 店铺足迹 --- fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java index 1d1ff4d..a3158d8 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandClassShopServiceImpl.java @@ -257,9 +257,14 @@ @Cacheable(value = "brandCache", key = "'listEffectiveCache-'+#page+'-'+#cid") public JSONObject listEffectiveCache(int page, Long cid) { long countShop = 0; + + if (cid != null && cid <= 0) { + cid = null; + } + List<TaoBaoShop> listShop = new ArrayList<TaoBaoShop>(); // 绗竴椤� 鏌ヨ鍏ㄩ儴鍒嗙被涓嬪簵閾� - if (page == 1 && cid != null && cid > 0 ) { + if (page == 1 && cid != null) { List<BrandClassShop> list = brandClassShopMapper.listEffective(cid); if (list == null) { list = new ArrayList<BrandClassShop>(); -- Gitblit v1.8.0