| 
					
				 | 
			
			
				@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("goods") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Api(tags = "商品(教材、辅件)服务") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,7 +24,7 @@ public class GoodsController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "新增商品(教材、辅件)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/add") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object add(Goods goods){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object add(@RequestBody Goods goods){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Date date = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goods.setCreateTime(date); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goods.setUpdateTime(date); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -40,7 +41,7 @@ public class GoodsController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "修改商品(教材、辅件)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PutMapping("/update") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object update(Goods goods){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object update(@RequestBody Goods goods){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goods.setUpdateTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsService.update(goods); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,7 +55,7 @@ public class GoodsController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "分页查询商品(教材、辅件)列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/queryPage") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object queryPage(GoodsQueryInfo queryInfo){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object queryPage(@RequestBody GoodsQueryInfo queryInfo){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(goodsService.queryPage(queryInfo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -62,7 +63,9 @@ public class GoodsController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/queryGoodsBySubId") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiImplicitParams({ @ApiImplicitParam(name = "subjectId", value = "科目编号", required = true, dataType = "Integer"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @ApiImplicitParam(name = "goodsCategoryId", value = "商品分类", required = true, dataType = "Integer")}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object findGoodsBySubId(Integer subjectId,Integer goodsCategoryId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object findGoodsBySubId(@RequestBody HashMap<String, Integer> param){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Integer subjectId = param.get("subjectId"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Integer goodsCategoryId = param.get("goodsCategoryId"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(goodsService.findGoodsBySubId(subjectId,goodsCategoryId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |