From c0f13add249efc60e02ea4a306ab0b464ed69353 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期日, 28 四月 2019 11:52:47 +0800 Subject: [PATCH] 品牌商品优化 --- fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoShopServiceImpl.java | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoShopServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoShopServiceImpl.java index 73957b9..a8edbcb 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoShopServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TaoBaoShopServiceImpl.java @@ -1,6 +1,7 @@ package com.yeshi.fanli.service.impl.taobao; import java.io.InputStream; +import java.util.List; import java.util.UUID; import javax.annotation.Resource; @@ -18,6 +19,7 @@ import com.yeshi.fanli.util.StringUtil; import com.yeshi.fanli.util.db.MongoDBManager; import com.yeshi.fanli.util.taobao.TaoBaoShopUtil; +import com.yeshi.fanli.vo.brand.TaoBaoShopVO; @Service public class TaoBaoShopServiceImpl implements TaoBaoShopService { @@ -99,8 +101,13 @@ } } + + if (StringUtil.isNullOrEmpty(shopName) || "null".equalsIgnoreCase(shopName)) { + shopName = null; + } + updateShop.setId(id); - updateShop.setShopName(shopName); + updateShop.setShopNameCustom(shopName); taoBaoShopMapper.updateByPrimaryKeySelective(updateShop); } @@ -125,6 +132,18 @@ return fileLink; } + + @Override + public List<TaoBaoShopVO> listBrandShopinfo(long start, int count, Long cid) { + return taoBaoShopMapper.listBrandShopinfo(start, count, cid); + } + + + @Override + public long countBrandShopinfo(Long cid) { + return taoBaoShopMapper.countBrandShopinfo(cid); + } + } -- Gitblit v1.8.0