From c9f28b430799cc8d40c7a7d99fd0f0eeecff6a5c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 15 三月 2019 14:26:10 +0800
Subject: [PATCH] 删除老版密码输入错误的相关代码

---
 fanli/src/main/java/com/yeshi/fanli/controller/admin/GoodsClassAdminCotroller.java |  104 ++++-----------------------------------------------
 1 files changed, 9 insertions(+), 95 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/admin/GoodsClassAdminCotroller.java b/fanli/src/main/java/com/yeshi/fanli/controller/admin/GoodsClassAdminCotroller.java
index c0598f7..c6e8433 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/admin/GoodsClassAdminCotroller.java
+++ b/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,8 +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.entity.system.BusinessSystem;
+import com.yeshi.fanli.service.inter.config.BusinessSystemService;
 import com.yeshi.fanli.service.inter.goods.ClassRecommendGoodsService;
 import com.yeshi.fanli.service.inter.goods.GoodsClassService;
 import com.yeshi.fanli.service.inter.goods.GoodsSecondClassService;
@@ -36,6 +34,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")
@@ -60,11 +60,9 @@
 	private LabelClassService labelClassService;
 
 	@Resource
-	private SystemService systemService;
+	private BusinessSystemService businessSystemService;
 
-	// private static final String IMGPATH="/upload/class";
-
-	@RequestMapping(value = "getGoodsClassList"/* , method = RequestMethod.POST */)
+	@RequestMapping(value = "getGoodsClassList")
 	public void getGoodsClassList(String callback, Integer pageIndex, String platform, String packages, String key, PrintWriter out) {
 
 		List<GoodsClassAdmin> goodsClassList = goodsClassService.getGoodsClassAdmins(pageIndex - 1, platform, packages, key);
@@ -79,17 +77,12 @@
 		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);
 
 		JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
-
-		// out.print(JsonUtil.loadTrueResult(data));
-
-		return;
-
 	}
 
 	@RequestMapping(value = "queryAll")
@@ -103,26 +96,19 @@
 				return;
 			}
 
-			Map<String, String> map = new HashMap<String, String>();
-			map.put("platform", platform);
-			map.put("packages", packages);
 			JSONObject data = new JSONObject();
-
-			// List<System> systemList = systemService.getSystems();
-			// data.put("systemList", systemList);
-
 			data.put("goodsClassList", goodsClassList);
 
 			JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
 		} catch (Exception e) {
-			// TODO Auto-generated catch block
 			e.printStackTrace();
 			JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("鎿嶄綔寮傚父"));
 		}
 
 	}
 
-	@RequestMapping(value = "getGoodsClasAll"/* , method = RequestMethod.POST */)
+	
+	@RequestMapping(value = "getGoodsClasAll")
 	public void getGoodsClassAll(String callback, PrintWriter out) {
 		List<GoodsClass> goodsClassList = goodsClassService.getGoodsClassAll();
 
@@ -136,67 +122,6 @@
 		}
 	}
 
-	@RequestMapping(value = "addGoodsClass", method = RequestMethod.POST)
-	public void addGoodsClass(GoodsClass goodsClass, PrintWriter out) {
-		if (goodsClass == null) {
-			out.print(JsonUtil.loadFalseResult("goodsClass涓嶈兘涓虹┖"));
-			return;
-		}
-		Integer res = goodsClassService.addGoodsClass(goodsClass);
-		if (res == null) {
-			out.print(JsonUtil.loadTrueResult("娣诲姞鍒嗙被鎴愬姛"));
-		} else {
-			out.print(JsonUtil.loadFalseResult("娣诲姞澶辫触"));
-		}
-		return;
-	}
-
-	// @RequestMapping(value="uploadImg",method=RequestMethod.POST)
-	// public void uploadImg(@RequestParam("file") CommonsMultipartFile
-	// file,HttpServletRequest request,PrintWriter out){
-	// ServletContext servletContext = request.getSession().getServletContext();
-	// JSONObject json=new JSONObject();
-	// if(file != null){
-	// String root=servletContext.getRealPath(IMGPATH);
-	// if (!new File(root).exists()){
-	// new File(root).mkdirs();
-	// }
-	// File newFile=new File(root+"/"+file.getOriginalFilename());
-	// //閫氳繃CommonsMultipartFile鐨勬柟娉曠洿鎺ュ啓鏂囦欢锛堟敞鎰忚繖涓椂鍊欙級
-	// try {
-	// file.transferTo(newFile);
-	// json.put("code", "0");
-	// json.put("path", IMGPATH+"/"+newFile.getName());
-	// } catch (IllegalStateException e) {
-	// e.printStackTrace();
-	// json.put("code", "1");
-	// } catch (IOException e) {
-	// e.printStackTrace();
-	// json.put("code", "1");
-	// }finally{
-	// out.print(json);
-	// }
-	// }else{
-	// json.put("code", "1");
-	// out.print(json);
-	// }
-	// }
-
-	@RequestMapping(value = "setGoodsClassSystem", method = RequestMethod.POST)
-	public void setGoodsClassSystem(String type, long gcid, String platform, String packageName, PrintWriter out) {
-		platform = Utils.getMap().get(platform);
-		if (Constant.DEL.equals(type)) {
-			Integer integer = superGoodsClassService.deleteSuperGoodsClass(gcid, platform, packageName);
-			if (integer > 0) {
-				out.print(JsonUtil.loadTrueResult("鍒犻櫎鎴愬姛"));
-			} else {
-				out.print(JsonUtil.loadTrueResult("鍒犻櫎澶辫触"));
-			}
-		} else {
-			superGoodsClassService.addSuperGoodsClass(gcid, platform, packageName);
-			out.print(JsonUtil.loadTrueResult("娣诲姞鎴愬姛"));
-		}
-	}
 
 	@RequestMapping(value = "getGoodsClass", method = RequestMethod.POST)
 	public void getGoodsClass(long id, PrintWriter out) {
@@ -208,17 +133,6 @@
 		out.print(JsonUtil.loadFalseResult("涓嶅瓨鍦ㄨGoodsClass"));
 	}
 
-	@RequestMapping(value = "deleteGoodsClass", method = RequestMethod.POST)
-	public void deleteGoodsClass(long[] gcids, PrintWriter out) {
-		goodsClassService.deleteGoodsClasss(gcids);
-		out.print(JsonUtil.loadTrueResult("鍒犻櫎鎴愬姛"));
-	}
-
-	@RequestMapping(value = "updateGoodsClass", method = RequestMethod.POST)
-	public void updateGoodsClass(GoodsClass goodsClass, PrintWriter out) {
-		goodsClassService.updateGoodsClass(goodsClass);
-		out.print(JsonUtil.loadTrueResult("淇敼鎴愬姛"));
-	}
 
 	/**
 	 * 娣诲姞绫诲埆

--
Gitblit v1.8.0