From 744594ef1a2f530fc3e86ea9dc48b62247f79420 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 19 五月 2020 17:13:23 +0800 Subject: [PATCH] 饿了么绘图,添加口碑 --- fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java index 1d96481..12a0345 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/brand/BrandShopCaheServiceImpl.java @@ -48,7 +48,7 @@ BrandShopCahe brandShop = new BrandShopCahe(); brandShop.setBrandId(brandInfo.getId()); - brandShop.setShop(ShopInfoVOFactory.convertTaoBaoShop(taoBaoShop)); + brandShop.setShop(shopInfoVO); brandShop.setCreateTime(new Date()); brandShopCaheDao.insert(brandShop); return false; @@ -80,12 +80,12 @@ * @return */ @Override - public void addBrandShopPDD(BrandInfo brandInfo) { - String shopKey = brandInfo.getShopKey(); + public int addBrandShopPDD(BrandInfo brandInfo) { + String shopKey = brandInfo.getShopKeyPDD(); if (StringUtil.isNullOrEmpty(shopKey)) - shopKey = brandInfo.getName(); + return 0; - String searchKey = brandInfo.getSearchKey(); + String searchKey = brandInfo.getSearchKeyPDD(); if (StringUtil.isNullOrEmpty(searchKey)) searchKey = brandInfo.getName(); @@ -124,7 +124,9 @@ brandShop.setShop(shopInfoVO); brandShop.setCreateTime(new Date()); brandShopCaheDao.insert(brandShop); + return 1; } + return 0; } -- Gitblit v1.8.0