关键零部件绑定关系管理添加权限

This commit is contained in:
梁琦涛
2024-09-25 16:04:27 +08:00
parent 91bea54fe9
commit ee8ec76b20
@@ -49,7 +49,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-分页列表查询", notes = "业务支持-关键零部件绑定关系管理-分页列表查询")
@GetMapping(value = "/page")
@ApiOperationSupport(order = 1)
// @RequiresPermissions("marketStandard:search")
@RequiresPermissions("keyPartBindingManage:search")
public Result<IPage<LawsPartRelevance>> queryPageList(LawsPartRelevance lawsPartRelevance,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
@@ -84,7 +84,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-删除", notes = "业务支持-关键零部件绑定关系管理-删除")
@ApiOperationSupport(order = 4)
@PostMapping(value = "/delete")
// @RequiresPermissions("marketStandard:deleteBatch")
@RequiresPermissions("keyPartBindingManage:delete")
public Result<?> delete(@RequestBody Map<String, String> map) {
if (!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))) {
return Result.error(ResultCommon.SELECT_DATA);
@@ -103,7 +103,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-批量删除", notes = "业务支持-关键零部件绑定关系管理-批量删除")
@ApiOperationSupport(order = 4)
@PostMapping(value = "/deleteBatch")
// @RequiresPermissions("marketStandard:deleteBatch")
@RequiresPermissions("keyPartBindingManage:batchDel")
public Result<T> deleteBatch(@RequestBody Map<String, String> map) {
if (!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))) {
return Result.error(ResultCommon.SELECT_DATA);
@@ -122,7 +122,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-新增", notes = "业务支持-关键零部件绑定关系管理-新增")
@ApiOperationSupport(order = 5)
@PostMapping(value = "/add")
// @RequiresPermissions("marketStandard:add")
@RequiresPermissions("keyPartBindingManage:add")
public Result<T> add(@Validated @RequestBody LawsPartRelevance lawsPartRelevance) {
lawsPartRelevanceService.add(lawsPartRelevance);
return Result.OK(ResultCommon.OK);
@@ -138,7 +138,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-编辑", notes = "业务支持-关键零部件绑定关系管理-编辑")
@ApiOperationSupport(order = 6)
@PostMapping(value = "/edit")
// @RequiresPermissions("marketStandard:edit")
@RequiresPermissions("keyPartBindingManage:import")
public Result<T> edit(@Validated @RequestBody LawsPartRelevance lawsPartRelevance) {
this.lawsPartRelevanceService.edit(lawsPartRelevance);
return Result.OK(ResultCommon.OK);
@@ -155,7 +155,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-导入", notes = "业务支持-关键零部件绑定关系管理-导入")
@ApiOperationSupport(order = 7)
@PostMapping(value = "/importExcel")
// @RequiresPermissions("marketStandard:detail:operate")
@RequiresPermissions("keyPartBindingManage:import")
public Result<?> importExcel(@RequestParam("file") @ApiParam("文件") MultipartFile file) {
return lawsPartRelevanceService.importExcel(file);
}
@@ -170,7 +170,7 @@ public class LawsPartRelevanceController {
@ApiOperation(value = "业务支持-关键零部件绑定关系管理-下载模版", notes = "业务支持-关键零部件绑定关系管理-下载模版")
@ApiOperationSupport(order = 7)
@GetMapping(value = "/downloadTemplate")
// @RequiresPermissions("marketStandard:detail:operate")
@RequiresPermissions("keyPartBindingManage:templateDownload")
public ModelAndView downloadTemplate(HttpServletResponse response) {
return lawsPartRelevanceService.downloadTemplate(response);
}