admin
2019-07-22 d2357693d74ec048ed19e483ea29f87d823cde5f
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/SearchControllerV2.java
@@ -587,11 +587,19 @@
            
            String minPrice = jsonfilter.optString("minPrice");
            if (!StringUtil.isNullOrEmpty(minPrice)) {
               if(minPrice.contains(".")) {
                  minPrice = minPrice.replace(".", "-");
                  minPrice = minPrice.split("-")[0];
               }
               jdfilter.setFromPrice(Integer.parseInt(minPrice));
            }
            
            String maxPrice = jsonfilter.optString("maxPrice");
            if (!StringUtil.isNullOrEmpty(maxPrice)) {
               if(maxPrice.contains(".")) {
                  maxPrice = maxPrice.replace(".", "-");
                  maxPrice =  maxPrice.split("-")[0];
               }
               jdfilter.setToPrice(Integer.parseInt(maxPrice));
            }
         }
@@ -685,6 +693,7 @@
      PDDGoodsResult result = PinDuoDuoApiUtil.searchGoods(pddfilter);
      if (result != null) {
         count = result.getTotalCount();
         Gson gson = JsonUtil.getApiCommonGson();
         List<PDDGoodsDetail> goodsList = result.getGoodsList();
         if (goodsList != null && goodsList.size() > 0) {
            BigDecimal fanLiRate = hongBaoManageService.getFanLiRate();
@@ -693,11 +702,11 @@
            for (PDDGoodsDetail goods : goodsList) {
               GoodsDetailVO goodsDetailVO = GoodsDetailVOFactory.convertPDDGoods(goods, null, fanLiRate,
                     shareRate);
               array.add(GsonUtil.toJsonExpose(goodsDetailVO));
               array.add(gson.toJson(goodsDetailVO));
            }
         }
      }
      data.put("result", array);
      data.put("count", count);
      out.print(JsonUtil.loadTrueResult(data));