Showing
3 changed files
with
15 additions
and
15 deletions
| ... | ... | @@ -45,7 +45,7 @@ public class OfficeController extends DefaultBaseController { | 
| 45 | 45 | * 查询列表 | 
| 46 | 46 | */ | 
| 47 | 47 | @ApiOperation("查询列表") | 
| 48 | - @HasPermission({"base-data:office:query"}) | |
| 48 | + @HasPermission({"base-data:section-office:query"}) | |
| 49 | 49 | @GetMapping("/query") | 
| 50 | 50 | public InvokeResult<PageResult<GetOfficeBo>> query(@Valid QueryOfficeVo vo) { | 
| 51 | 51 | PageResult<Office> pageResult = officeService.query(getPageIndex(vo), getPageSize(vo), vo); | 
| ... | ... | @@ -63,7 +63,7 @@ public class OfficeController extends DefaultBaseController { | 
| 63 | 63 | */ | 
| 64 | 64 | @ApiOperation("根据ID查询") | 
| 65 | 65 | @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | 
| 66 | - @HasPermission({"base-data:office:query"}) | |
| 66 | + @HasPermission({"base-data:section-office:query"}) | |
| 67 | 67 | @GetMapping | 
| 68 | 68 | public InvokeResult<GetOfficeBo> get(@NotBlank(message = "id不能为空!") String id) { | 
| 69 | 69 | Office data = officeService.findById(id); | 
| ... | ... | @@ -79,7 +79,7 @@ public class OfficeController extends DefaultBaseController { | 
| 79 | 79 | * 新增 | 
| 80 | 80 | */ | 
| 81 | 81 | @ApiOperation("新增") | 
| 82 | - @HasPermission({"base-data:office:add"}) | |
| 82 | + @HasPermission({"base-data:section-office:add"}) | |
| 83 | 83 | @PostMapping | 
| 84 | 84 | public InvokeResult<Void> create(@Valid CreateOfficeVo vo) { | 
| 85 | 85 | officeService.create(vo); | 
| ... | ... | @@ -90,7 +90,7 @@ public class OfficeController extends DefaultBaseController { | 
| 90 | 90 | * 修改 | 
| 91 | 91 | */ | 
| 92 | 92 | @ApiOperation("修改") | 
| 93 | - @HasPermission({"base-data:office:modify"}) | |
| 93 | + @HasPermission({"base-data:section-office:modify"}) | |
| 94 | 94 | @PutMapping | 
| 95 | 95 | public InvokeResult<Void> update(@Valid UpdateOfficeVo vo) { | 
| 96 | 96 | officeService.update(vo); | 
| ... | ... | @@ -102,7 +102,7 @@ public class OfficeController extends DefaultBaseController { | 
| 102 | 102 | */ | 
| 103 | 103 | @ApiOperation("根据ID删除") | 
| 104 | 104 | @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | 
| 105 | - @HasPermission({"base-data:office:delete"}) | |
| 105 | + @HasPermission({"base-data:section-office:delete"}) | |
| 106 | 106 | @DeleteMapping | 
| 107 | 107 | public InvokeResult<Void> deleteById(@NotBlank(message = "id不能为空!") String id) { | 
| 108 | 108 | officeService.deleteById(id); | ... | ... | 
| ... | ... | @@ -47,7 +47,7 @@ public class ProductVarietyController extends DefaultBaseController { | 
| 47 | 47 | * 查询列表 | 
| 48 | 48 | */ | 
| 49 | 49 | @ApiOperation("查询列表") | 
| 50 | - @HasPermission({"base-data:variety:query"}) | |
| 50 | + @HasPermission({"base-data:product-variety:query"}) | |
| 51 | 51 | @GetMapping("/query") | 
| 52 | 52 | public InvokeResult<PageResult<GetProductVarietyBo>> query(@Valid QueryProductVarietyVo vo) { | 
| 53 | 53 | PageResult<ProductVariety> pageResult = productVarietyService.query(getPageIndex(vo), getPageSize(vo), vo); | 
| ... | ... | @@ -64,7 +64,7 @@ public class ProductVarietyController extends DefaultBaseController { | 
| 64 | 64 | */ | 
| 65 | 65 | @ApiOperation("根据ID查询") | 
| 66 | 66 | @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | 
| 67 | - @HasPermission({"base-data:variety:query"}) | |
| 67 | + @HasPermission({"base-data:product-variety:query"}) | |
| 68 | 68 | @GetMapping | 
| 69 | 69 | public InvokeResult<GetProductVarietyBo> get(@NotBlank(message = "id不能为空!") String id) { | 
| 70 | 70 | ProductVariety data = productVarietyService.findById(id); | 
| ... | ... | @@ -80,7 +80,7 @@ public class ProductVarietyController extends DefaultBaseController { | 
| 80 | 80 | * 新增 | 
| 81 | 81 | */ | 
| 82 | 82 | @ApiOperation("新增") | 
| 83 | - @HasPermission({"base-data:variety:add"}) | |
| 83 | + @HasPermission({"base-data:product-variety:add"}) | |
| 84 | 84 | @PostMapping | 
| 85 | 85 | public InvokeResult<Void> create(@Valid CreateProductVarietyVo vo) { | 
| 86 | 86 | productVarietyService.create(vo); | 
| ... | ... | @@ -91,7 +91,7 @@ public class ProductVarietyController extends DefaultBaseController { | 
| 91 | 91 | * 修改 | 
| 92 | 92 | */ | 
| 93 | 93 | @ApiOperation("修改") | 
| 94 | - @HasPermission({"base-data:variety:modify"}) | |
| 94 | + @HasPermission({"base-data:product-variety:modify"}) | |
| 95 | 95 | @PutMapping | 
| 96 | 96 | public InvokeResult<Void> update(@Valid UpdateProductVarietyVo vo) { | 
| 97 | 97 | productVarietyService.update(vo); | 
| ... | ... | @@ -103,7 +103,7 @@ public class ProductVarietyController extends DefaultBaseController { | 
| 103 | 103 | */ | 
| 104 | 104 | @ApiOperation("根据ID删除") | 
| 105 | 105 | @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | 
| 106 | - @HasPermission({"base-data:variety:delete"}) | |
| 106 | + @HasPermission({"base-data:product-variety:delete"}) | |
| 107 | 107 | @DeleteMapping | 
| 108 | 108 | public InvokeResult<Void> deleteById(@NotBlank(message = "id不能为空!") String id) { | 
| 109 | 109 | productVarietyService.deleteById(id); | ... | ... | 
| ... | ... | @@ -45,7 +45,7 @@ public class WorkshopController extends DefaultBaseController { | 
| 45 | 45 | * 查询列表 | 
| 46 | 46 | */ | 
| 47 | 47 | @ApiOperation("查询列表") | 
| 48 | - @HasPermission({"base-data:workshop:query"}) | |
| 48 | + @HasPermission({"base-data:maker:query"}) | |
| 49 | 49 | @GetMapping("/query") | 
| 50 | 50 | public InvokeResult<PageResult<GetWorkshopBo>> query(@Valid QueryWorkshopVo vo) { | 
| 51 | 51 | |
| ... | ... | @@ -63,7 +63,7 @@ public class WorkshopController extends DefaultBaseController { | 
| 63 | 63 | * 新增 | 
| 64 | 64 | */ | 
| 65 | 65 | @ApiOperation("新增") | 
| 66 | - @HasPermission({"base-data:workshop:add"}) | |
| 66 | + @HasPermission({"base-data:maker:add"}) | |
| 67 | 67 | @PostMapping | 
| 68 | 68 | public InvokeResult<Void> create(@Valid CreateWorkshopVo vo) { | 
| 69 | 69 | workshopService.create(vo); | 
| ... | ... | @@ -74,7 +74,7 @@ public class WorkshopController extends DefaultBaseController { | 
| 74 | 74 | * 修改 | 
| 75 | 75 | */ | 
| 76 | 76 | @ApiOperation("修改") | 
| 77 | - @HasPermission({"base-data:workshop:modify"}) | |
| 77 | + @HasPermission({"base-data:maker:modify"}) | |
| 78 | 78 | @PutMapping | 
| 79 | 79 | public InvokeResult<Void> update(@Valid UpdateWorkshopVo vo) { | 
| 80 | 80 | workshopService.update(vo); | 
| ... | ... | @@ -86,7 +86,7 @@ public class WorkshopController extends DefaultBaseController { | 
| 86 | 86 | */ | 
| 87 | 87 | @ApiOperation("根据ID删除") | 
| 88 | 88 | @ApiImplicitParam(value = "id", name = "id", paramType = "query", required = true) | 
| 89 | - @HasPermission({"base-data:workshop:delete"}) | |
| 89 | + @HasPermission({"base-data:maker:delete"}) | |
| 90 | 90 | @DeleteMapping | 
| 91 | 91 | public InvokeResult<Void> deleteById(@NotBlank(message = "id不能为空!") String id) { | 
| 92 | 92 | workshopService.deleteById(id); | 
| ... | ... | @@ -98,7 +98,7 @@ public class WorkshopController extends DefaultBaseController { | 
| 98 | 98 | */ | 
| 99 | 99 | @ApiOperation("厂房详情") | 
| 100 | 100 | @ApiImplicitParam(value = "ID", name = "id", paramType = "query", required = true) | 
| 101 | - @HasPermission({"base-data:workshop:query", "base-data:workshop:add", "base-data:workshop:modify"}) | |
| 101 | + @HasPermission({"base-data:maker:query"}) | |
| 102 | 102 | @GetMapping | 
| 103 | 103 | public InvokeResult<GetWorkshopBo> get(@NotBlank(message = "ID不能为空!") String id) { | 
| 104 | 104 | Workshop data = workshopService.findById(id); | ... | ... |