Authored by 胡古飞

返回的店铺需要是开店的

@@ -236,12 +236,12 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic @@ -236,12 +236,12 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic
236 continue; 236 continue;
237 } 237 }
238 Map<String, Object> shopInfo = shopInfoMap.get(shopId); 238 Map<String, Object> shopInfo = shopInfoMap.get(shopId);
239 - if (shopInfo == null ) { 239 + if (shopInfo == null) {
  240 + continue;
  241 + }
  242 + if ((Integer) shopInfo.get("status") != 1) {
240 continue; 243 continue;
241 } 244 }
242 -// if ((Integer) shopInfo.get("status") != 1 || (Integer) shopInfo.get("check_status") != 300) {  
243 -// continue;  
244 -// }  
245 yohoShops.add(shopInfo); 245 yohoShops.add(shopInfo);
246 } 246 }
247 return yohoShops; 247 return yohoShops;
@@ -255,7 +255,7 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic @@ -255,7 +255,7 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic
255 private JSONArray getGlobalBrandList(List<BrandShopInfo> brandShopInfoList, String brandId, Map<String, Map<String, Object>> globalBrandInfoMap) { 255 private JSONArray getGlobalBrandList(List<BrandShopInfo> brandShopInfoList, String brandId, Map<String, Map<String, Object>> globalBrandInfoMap) {
256 JSONArray getGlobalBrandList = new JSONArray(); 256 JSONArray getGlobalBrandList = new JSONArray();
257 Map<String, Object> globalBrandInfo = globalBrandInfoMap.get(brandId); 257 Map<String, Object> globalBrandInfo = globalBrandInfoMap.get(brandId);
258 - if(globalBrandInfo==null){ 258 + if (globalBrandInfo == null) {
259 return getGlobalBrandList; 259 return getGlobalBrandList;
260 } 260 }
261 boolean isGlobalBrand = false; 261 boolean isGlobalBrand = false;
@@ -276,13 +276,12 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic @@ -276,13 +276,12 @@ public class BrandWithShopsServiceImpl implements IBrandWithShopsService, Applic
276 } 276 }
277 isGlobalBrand = true; 277 isGlobalBrand = true;
278 } 278 }
279 - if(isGlobalBrand){ 279 + if (isGlobalBrand) {
280 getGlobalBrandList.add(globalBrandInfo); 280 getGlobalBrandList.add(globalBrandInfo);
281 } 281 }
282 return getGlobalBrandList; 282 return getGlobalBrandList;
283 } 283 }
284 284
285 -  
286 /** 285 /**
287 * 是否是合法的店铺信息 286 * 是否是合法的店铺信息
288 * 287 *