admin
2019-04-29 d92226ce9f81c44fd0e159662d928767ce423b83
fanli/src/main/java/com/yeshi/fanli/controller/web/WebSearchController.java
@@ -179,7 +179,15 @@
            sf.setStartTkRate(Integer.parseInt(rate));
         } catch (Exception e) {
         }
      if (!StringUtil.isNullOrEmpty(order))
         if (Integer.parseInt(order) == 0)
            sf.setSort(TaoBaoUtil.SORT_SALE_HIGH_TO_LOW);
         else if (Integer.parseInt(order) == 2)
            sf.setSort(TaoBaoUtil.SORT_PRICE_LOW_TO_HIGH);
         else if (Integer.parseInt(order) == 3)
            sf.setSort(TaoBaoUtil.SORT_PRICE_HIGH_TO_LOW);
         else if (Integer.parseInt(order) == 4)
            sf.setSort(TaoBaoUtil.SORT_TKRATE_HIGH_TO_LOW);
      if (StringUtil.isNullOrEmpty(kw))
         recommend = true;
@@ -243,12 +251,12 @@
                  }
            } else {
               TaoBaoGoodsBriefExtra taoBaoGoodsBriefExtra;
               if(taoBaoGoodsBriefs!=null)
               for (TaoBaoGoodsBrief taoBaoGoodsBrief : taoBaoGoodsBriefs) {
                  taoBaoGoodsBriefExtra = TaoBaoUtil.getTaoBaoGoodsBriefExtra(taoBaoGoodsBrief,
                        proportion.toString(), "");
                  listExtra.add(taoBaoGoodsBriefExtra);
               }
               if (taoBaoGoodsBriefs != null)
                  for (TaoBaoGoodsBrief taoBaoGoodsBrief : taoBaoGoodsBriefs) {
                     taoBaoGoodsBriefExtra = TaoBaoUtil.getTaoBaoGoodsBriefExtra(taoBaoGoodsBrief,
                           proportion.toString(), "");
                     listExtra.add(taoBaoGoodsBriefExtra);
                  }
            }
            count = result.getTaoBaoHead().getDocsfound();
         }