admin
2019-07-30 714da0c87a1b94adf4057858b9cc0a2569fb0a04
fanli/src/main/java/com/yeshi/fanli/controller/admin/HotSearchAdminController.java
@@ -123,6 +123,11 @@
      }
      
      try {   
         Integer useType = hotSearch.getUseType();
         if (useType == null) {
            hotSearch.setUseType(Constant.SOURCE_TYPE_TAOBAO);
         }
         hotSearch.setId(null);
         hotSearchService.addHotSearch(hotSearch);
         JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("添加成功"));
@@ -155,12 +160,8 @@
            return;
         }
         
         Integer type = hotSearchService.deleteHotSearch(hsids);
         if(type==null){
            JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("删除成功"));
         }else{
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("删除失败"));
         }
         hotSearchService.deleteHotSearch(hsids);
         JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("删除成功"));
         
      } catch (Exception e) {
         JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("删除失败"));
@@ -186,14 +187,11 @@
            data.put("check", 1);
            JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
         } else {
            Integer count = superHotSearchService.deleteSuper(id, systemId);
            if (count > 0) {
               JSONObject data = new JSONObject();
               data.put("check", 0);
               JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
            } else {
               JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("修改失败"));
            }
            superHotSearchService.deleteSuper(id, systemId);
            JSONObject data = new JSONObject();
            data.put("check", 0);
            JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
         }
         
      } catch (Exception e) {