更新代码

This commit is contained in:
xiao-fajia 2024-09-26 18:24:17 +08:00
parent 3815b915e3
commit 83f5436d6d
2 changed files with 10 additions and 10 deletions

View File

@ -44,7 +44,7 @@ public class RepairProjectController {
**/
@PostMapping("/create")
@Operation(summary = "创建维修项目")
@PreAuthorize("@ss.hasPermission('repair:project:create')")
// @PreAuthorize("@ss.hasPermission('repair:project:create')")
public CommonResult<RepairProject> createRepairProject(@Valid @RequestBody RepairProjectSaveReqVO createReqVO) {
RepairProject repairProject = repairProjectService.saveRepairProject(createReqVO);
return success(repairProject);
@ -60,7 +60,7 @@ public class RepairProjectController {
**/
@PutMapping("/update")
@Operation(summary = "更新维修项目")
@PreAuthorize("@ss.hasPermission('repair:project:update')")
// @PreAuthorize("@ss.hasPermission('repair:project:update')")
public CommonResult<Boolean> updateRepairProject(@Valid @RequestBody RepairProjectSaveReqVO updateReqVO) {
repairProjectService.saveRepairProject(updateReqVO);
return success(true);
@ -77,7 +77,7 @@ public class RepairProjectController {
@DeleteMapping("/delete")
@Operation(summary = "删除维修项目")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('repair:project:delete')")
// @PreAuthorize("@ss.hasPermission('repair:project:delete')")
public CommonResult<Boolean> deleteRepairProject(@RequestParam("id") String id) {
repairProjectService.deleteRepairProject(id);
return success(true);
@ -94,7 +94,7 @@ public class RepairProjectController {
@GetMapping("/get")
@Operation(summary = "获得维修项目")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('repair:project:query')")
// @PreAuthorize("@ss.hasPermission('repair:project:query')")
public CommonResult<RepairProjectRespVO> getRepairProject(@RequestParam("id") String id) {
RepairProject repairProject = repairProjectService.getRepairProject(id);
return success(BeanUtils.toBean(repairProject, RepairProjectRespVO.class));
@ -113,7 +113,7 @@ public class RepairProjectController {
**/
@GetMapping("/page")
@Operation(summary = "获得维修项目分页")
@PreAuthorize("@ss.hasPermission('repair:project:query')")
// @PreAuthorize("@ss.hasPermission('repair:project:query')")
public CommonResult<IPage<?>> getRepairProjectPage(RepairProjectPageReqVO pageReqVO,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {

View File

@ -43,7 +43,7 @@ public class RepairWaresController {
**/
@PostMapping("/create")
@Operation(summary = "创建配件库")
@PreAuthorize("@ss.hasPermission('repair:wares:create')")
// @PreAuthorize("@ss.hasPermission('repair:wares:create')")
public CommonResult<RepairWares> createWares(@Valid @RequestBody RepairWaresSaveReqVO createReqVO) {
return success(waresService.saveWares(createReqVO));
}
@ -58,7 +58,7 @@ public class RepairWaresController {
**/
@PutMapping("/update")
@Operation(summary = "更新配件库")
@PreAuthorize("@ss.hasPermission('repair:wares:update')")
// @PreAuthorize("@ss.hasPermission('repair:wares:update')")
public CommonResult<Boolean> updateWares(@Valid @RequestBody RepairWaresSaveReqVO updateReqVO) {
waresService.saveWares(updateReqVO);
return success(true);
@ -75,7 +75,7 @@ public class RepairWaresController {
@DeleteMapping("/delete")
@Operation(summary = "删除配件库")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('repair:wares:delete')")
// @PreAuthorize("@ss.hasPermission('repair:wares:delete')")
public CommonResult<Boolean> deleteWares(@RequestParam("id") String id) {
waresService.deleteWares(id);
return success(true);
@ -92,7 +92,7 @@ public class RepairWaresController {
@GetMapping("/get")
@Operation(summary = "获得配件库")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('repair:wares:query')")
// @PreAuthorize("@ss.hasPermission('repair:wares:query')")
public CommonResult<RepairWaresRespVO> getWares(@RequestParam("id") String id) {
return success(waresService.getWares(id));
}
@ -109,7 +109,7 @@ public class RepairWaresController {
**/
@GetMapping("/page")
@Operation(summary = "获得配件库分页")
@PreAuthorize("@ss.hasPermission('repair:wares:query')")
// @PreAuthorize("@ss.hasPermission('repair:wares:query')")
public CommonResult<IPage<?>> getWaresPage(RepairWaresPageReqVO pageReqVO,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {