소스 검색

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

JensionDzero 1 년 전
부모
커밋
3b1766ecd4
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      benyun-core/src/main/java/com/benyun/core/service/impl/BrandServiceImpl.java

+ 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){