Forráskód Böngészése

修复网点数量和覆盖城市数转换出现的问题

云殇忆 1 éve
szülő
commit
bc7a0b2ee0

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