diff --git a/laws-modules/src/main/java/com/jero/modules/laws/bindPart/controller/LawsBindPartController.java b/laws-modules/src/main/java/com/jero/modules/laws/bindPart/controller/LawsBindPartController.java index 5899d199..2ca8baec 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/bindPart/controller/LawsBindPartController.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/bindPart/controller/LawsBindPartController.java @@ -45,15 +45,11 @@ public class LawsBindPartController { @Resource private ISarFileSplitMenuEOService sarFileSplitMenuEOService; - /** - * 分页列表查询 - * - * @return - */ - @RequiresPermissions("enterpriseStandardLibrary:publicize:search") + @AutoLog(value = "绑定零部件-分页列表查询") @ApiOperation(value="绑定零部件-分页列表查询", notes="绑定零部件-分页列表查询") @GetMapping(value = "/page") + @RequiresPermissions("sys:bindingPart:search") public Result> queryPageList(LawsBindPart lawsBindPart, @RequestParam(name="pageNo", defaultValue="1") @ApiParam("页码") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") @ApiParam("页面显示数量") Integer pageSize, @@ -72,6 +68,7 @@ public class LawsBindPartController { @AutoLog(value = "绑定零部件-添加") @ApiOperation(value="绑定零部件-添加", notes="绑定零部件-添加") @PostMapping(value = "/add") + @RequiresPermissions("sys:bindingPart:add") public Result add(@Validated @RequestBody LawsBindPart lawsBindPart) { lawsBindPartService.add(lawsBindPart); return Result.OK("操作成功!"); @@ -86,6 +83,7 @@ public class LawsBindPartController { @AutoLog(value = "绑定零部件-编辑") @ApiOperation(value="绑定零部件-编辑", notes="绑定零部件-编辑") @PostMapping(value = "/edit") + @RequiresPermissions("sys:bindingPart:edit") public Result edit(@Validated @RequestBody LawsBindPart lawsBindPart) { lawsBindPartService.editById(lawsBindPart); return Result.OK("操作成功!"); @@ -100,6 +98,7 @@ public class LawsBindPartController { @AutoLog(value = "绑定零部件-通过id删除") @ApiOperation(value="绑定零部件-通过id删除", notes="绑定零部件-通过id删除") @PostMapping(value = "/delete") + @RequiresPermissions("sys:bindingPart:delete") public Result delete(@RequestBody Map map) { if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){ return Result.error("请选择数据!"); @@ -117,6 +116,7 @@ public class LawsBindPartController { @AutoLog(value = "绑定零部件-批量删除") @ApiOperation(value="绑定零部件-批量删除", notes="绑定零部件-批量删除") @PostMapping(value = "/deleteBatch") + @RequiresPermissions("sys:bindingPart:batchDel") public Result deleteBatch(@RequestBody Map map) { if(!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))){ return Result.error("请选择数据!");