admin
2019-04-01 e782b2bcfd89f7ce2e3079c7ebb0867bb00124a7
fanli/src/main/java/com/yeshi/fanli/controller/admin/GoodsClassAdminCotroller.java
@@ -9,8 +9,6 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@@ -24,9 +22,8 @@
import com.google.gson.reflect.TypeToken;
import com.yeshi.fanli.entity.admin.GoodsClassAdmin;
import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
import com.yeshi.fanli.entity.system.System;
import com.yeshi.fanli.service.inter.config.SystemService;
import com.yeshi.fanli.service.inter.goods.ClassRecommendGoodsService;
import com.yeshi.fanli.entity.system.BusinessSystem;
import com.yeshi.fanli.service.inter.config.BusinessSystemService;
import com.yeshi.fanli.service.inter.goods.GoodsClassService;
import com.yeshi.fanli.service.inter.goods.GoodsSecondClassService;
import com.yeshi.fanli.service.inter.goods.GoodsSubClassService;
@@ -36,6 +33,8 @@
import com.yeshi.fanli.util.Constant;
import com.yeshi.fanli.util.StringUtil;
import com.yeshi.fanli.util.Utils;
import net.sf.json.JSONObject;
@Controller
@RequestMapping("admin/new/api/v1/goodsclass")
@@ -47,8 +46,6 @@
   @Resource
   private SuperGoodsClassService superGoodsClassService;
   @Resource
   private ClassRecommendGoodsService classRecommendGoodsService;
   @Resource
   private GoodsSecondClassService goodsSecondClassService;
@@ -60,7 +57,7 @@
   private LabelClassService labelClassService;
   @Resource
   private SystemService systemService;
   private BusinessSystemService businessSystemService;
   @RequestMapping(value = "getGoodsClassList")
   public void getGoodsClassList(String callback, Integer pageIndex, String platform, String packages, String key, PrintWriter out) {
@@ -77,7 +74,7 @@
      pe.setParams(map);
      JSONObject data = new JSONObject();
      data.put("pe", pe);
      List<System> systemList = systemService.getSystems();
      List<BusinessSystem> systemList = businessSystemService.getBusinessSystems();
      data.put("systemList", systemList);
      data.put("goodsClassList", goodsClassList);
@@ -290,10 +287,7 @@
               Long recordId = Long.parseLong(id);
               superGoodsClassService.deleteSuperGoodsClass(recordId);
               classRecommendGoodsService.deleteClassGoodsByGC(recordId);
               
               // goodsSecondClassService.deleteSecondClassByGC(recordId);
               // 删除子类分类
               goodsSubClassService.deleteByRootId(recordId);
               // 删除类别关联标签