Просмотр исходного кода

Merge branch 'lcy' of http://47.107.53.207:3000/traineeCoder001/Bailian-Al

JensionDzero 1 год назад
Родитель
Сommit
3b1766ecd4

+ 6 - 2
benyun-core/src/main/java/com/benyun/core/service/impl/BrandServiceImpl.java

@@ -252,12 +252,16 @@ public class BrandServiceImpl implements BrandService {
         Integer countUp = null;
         Integer coverDown = null;
         Integer coverUp = null;
-        try {
+        if (body.getWdCount() != null){
             countDown = Integer.parseInt(body.getWdCount().get(0));
             countUp = Integer.parseInt(body.getWdCount().get(1));
+        }
+        if (body.getCoverCityCount() != null){
             coverDown = Integer.parseInt(body.getCoverCityCount().get(0));
             coverUp = Integer.parseInt(body.getCoverCityCount().get(1));
-        }catch (Exception e){}
+        }
+//        System.out.println(countDown+","+countUp);
+//        System.out.println(coverDown+","+coverUp);
         List<BrandSearch> brandSearches = brandMapper.searchSearchByMulti(text, industryCode, countUp, countDown, coverUp, coverDown);
         if (userId == null || userId.equals("")){
             for (BrandSearch search : brandSearches){