Merge branch '0110' of git.yoho.cn:yoho-search/yoho-search-consumer into 0110
Showing
2 changed files
with
6 additions
and
2 deletions
@@ -23,7 +23,8 @@ public class TblShopsLogicService { | @@ -23,7 +23,8 @@ public class TblShopsLogicService { | ||
23 | private ShopsBrandsMapper shopsBrandsMapper; | 23 | private ShopsBrandsMapper shopsBrandsMapper; |
24 | @Autowired | 24 | @Autowired |
25 | private BrandMapper brandMapper; | 25 | private BrandMapper brandMapper; |
26 | - | 26 | + @Autowired |
27 | + private TblImgUrlLogicService tblImgUrlLogicService; | ||
27 | @Autowired | 28 | @Autowired |
28 | private TblBrandService tblBrandService; | 29 | private TblBrandService tblBrandService; |
29 | 30 | ||
@@ -68,7 +69,9 @@ public class TblShopsLogicService { | @@ -68,7 +69,9 @@ public class TblShopsLogicService { | ||
68 | shopsBO.setShopName(tblBrand.getBrandNameEn()); | 69 | shopsBO.setShopName(tblBrand.getBrandNameEn()); |
69 | shopsBO.setShopDomain(""); | 70 | shopsBO.setShopDomain(""); |
70 | shopsBO.setShopNature(0); | 71 | shopsBO.setShopNature(0); |
71 | - shopsBO.setShopLogo(tblBrand.getLogo()); | 72 | + if (tblBrand.getLogo() != null) { |
73 | + shopsBO.setShopLogo(tblImgUrlLogicService.getTblImageUrl(tblBrand.getLogo() , true)); | ||
74 | + } | ||
72 | shopsBO.setWebsiteUrl(""); | 75 | shopsBO.setWebsiteUrl(""); |
73 | shopsBO.setOtherUrl(""); | 76 | shopsBO.setOtherUrl(""); |
74 | shopsBO.setShopAddress(""); | 77 | shopsBO.setShopAddress(""); |
-
Please register or login to post a comment