m
This commit is contained in:
		| @@ -49,7 +49,7 @@ public class WoPowerLevelController { | ||||
|         @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class), | ||||
|         @ApiImplicitParam(name = "lineBody", value = "线体", paramType = "query", dataTypeClass = Integer.class) | ||||
|     }) | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:page')") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:page')") | ||||
|     public Result<PageData<WoPowerLevelDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ | ||||
|         PageData<WoPowerLevelDTO> page = woPowerLevelService.page(params); | ||||
|  | ||||
| @@ -58,7 +58,7 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @GetMapping("{id}") | ||||
|     @ApiOperation("信息") | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:info')") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:info')") | ||||
|     public Result<WoPowerLevelDTO> get(@PathVariable("id") Long id){ | ||||
|         WoPowerLevelDTO data = woPowerLevelService.get(id); | ||||
|  | ||||
| @@ -67,8 +67,8 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @PostMapping | ||||
|     @ApiOperation("保存") | ||||
| //    @LogOperation("保存") | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:save')") | ||||
|     @LogOperation("保存") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:save')") | ||||
|     public Result<Long> save(@RequestBody WoPowerLevelDTO dto){ | ||||
|         //效验数据 | ||||
|         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); | ||||
| @@ -80,8 +80,8 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @PutMapping | ||||
|     @ApiOperation("修改") | ||||
| //    @LogOperation("修改") | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:update')") | ||||
|     @LogOperation("修改") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:update')") | ||||
|     public Result<Long> update(@RequestBody WoPowerLevelDTO dto){ | ||||
|         //效验数据 | ||||
|         ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); | ||||
| @@ -93,8 +93,8 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @DeleteMapping | ||||
|     @ApiOperation("删除") | ||||
| //    @LogOperation("删除") | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:delete')") | ||||
|     @LogOperation("删除") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:delete')") | ||||
|     public Result delete(@RequestBody Long[] ids){ | ||||
|         //效验数据 | ||||
|         AssertUtils.isArrayEmpty(ids, "id"); | ||||
| @@ -106,8 +106,8 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @GetMapping("export") | ||||
|     @ApiOperation("导出") | ||||
| //    @LogOperation("导出") | ||||
| //    @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:export')") | ||||
|     @LogOperation("导出") | ||||
|     @PreAuthorize("@ex.hasAuthority('packing:woPowerLevel:export')") | ||||
|     public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { | ||||
|         List<WoPowerLevelDTO> list = woPowerLevelService.list(params); | ||||
|  | ||||
| @@ -116,7 +116,6 @@ public class WoPowerLevelController { | ||||
|  | ||||
|     @PostMapping(value = "list") | ||||
|     @ApiOperation(value = "获取功率等级") | ||||
| //    @LogOperation("获取功率等级") | ||||
|     public List<WoPowerLevelDTO> list() { return woPowerLevelService.list(); } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user