yujian
2019-05-14 8cb7ec4a35a38ae91d0eed17cde711e81d2b2bbf
fanli/src/main/java/com/yeshi/fanli/controller/client/GoodsClassController.java
@@ -620,6 +620,8 @@
         filter.setPage(page);
         filter.setPageSize(pageSize);
         filter.setCateIds(taoBaoCatIds);
         //测试时添加
         filter.setSort(TaoBaoUtil.SORT_SALE_HIGH_TO_LOW);//销量从高到低
         JSONObject result = taoKeGoodsService.searchWuLiao(filter);
         out.print(JsonUtil.loadTrueResult(result));
@@ -800,7 +802,19 @@
   @RequestMapping(value = { "getcategory" }, method = { org.springframework.web.bind.annotation.RequestMethod.POST })
   public void getcategory(AcceptData acceptData, PrintWriter out) {
      try {
         List<Map<String, Object>> listCache = goodsClassService.getClassListAllCache();
         boolean changePicture = false;
         String version = acceptData.getVersion();
         int tversion = Integer.parseInt(version);
         String platform = acceptData.getPlatform();
         if ("android".equalsIgnoreCase(platform) && tversion > 38) {
            changePicture = true;
         } else if (tversion > 47){
            changePicture = true;
         }
         List<Map<String, Object>> listCache = goodsClassService.getClassListAllCache(changePicture);
         if (listCache == null) {
            listCache = new ArrayList<Map<String, Object>>();
         }