yonge 5 éve
szülő
commit
b09711378f

+ 9 - 0
mec-student/src/main/java/com/ym/mec/student/controller/RepairController.java

@@ -17,8 +17,11 @@ import com.ym.mec.biz.service.*;
 import com.ym.mec.common.controller.BaseController;
 import com.ym.mec.common.entity.HttpResponseResult;
 import com.ym.mec.common.exception.BizException;
+
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.bind.annotation.*;
@@ -136,6 +139,12 @@ public class RepairController extends BaseController {
         return succeed(goodsService.queryPage(queryInfo));
     }
 
+    @ApiOperation(value = "根据商品(教材、辅件)编号查询商品(教材、辅件)")
+    @GetMapping("/get/{id}")
+    public Object get(@ApiParam(value = "商品(教材、辅件)编号", required = true) @PathVariable("id") Integer id){
+        return succeed(goodsService.get(id));
+    }
+
     @ApiOperation(value = "分页查询商品分类列表")
     @GetMapping("/queryGoodsCategoryPage")
     public Object queryGoodsCategoryPage(GoodsCategoryQueryInfo queryInfo) {

+ 0 - 1
mec-web/src/main/java/com/ym/mec/web/controller/GoodsController.java

@@ -89,7 +89,6 @@ public class GoodsController extends BaseController {
 
     @ApiOperation(value = "根据商品(教材、辅件)编号查询商品(教材、辅件)")
     @GetMapping("/get/{id}")
-    @PreAuthorize("@pcs.hasPermissions('goods/get')")
     public Object get(@ApiParam(value = "商品(教材、辅件)编号", required = true) @PathVariable("id") Integer id){
         return succeed(goodsService.get(id));
     }