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