From 18b4be9e6b7e8319c2e02b20b9f9b0a422c352a5 Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期二, 28 五月 2024 15:58:13 +0800 Subject: [PATCH] 部分报表导出,修改报工新增后质检状态不正确问题,修改报工编辑后查询数据错误问题 --- north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java new file mode 100644 index 0000000..4b33b05 --- /dev/null +++ b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/RoleController.java @@ -0,0 +1,38 @@ +package com.example.erp.controller.userInfo; + +import cn.dev33.satoken.annotation.SaCheckPermission; +import com.example.erp.common.Result; +import com.example.erp.entity.userInfo.Role; +import com.example.erp.service.userInfo.RoleService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@Api(value="瑙掕壊controller",tags={"瑙掕壊鎿嶄綔鎺ュ彛"}) +@RequestMapping("/role") +public class RoleController { + private final RoleService roleService; + + public RoleController(RoleService roleService) { + this.roleService = roleService; + } + + + @ApiOperation("鏌ヨ鎵�鏈夎鑹�") + @SaCheckPermission("roleList.search") + @GetMapping("/findAll") + public Result findAll(){ + return Result.seccess(roleService.findAll()); + } + + + @ApiOperation("鏂板瑙掕壊") + @SaCheckPermission("roleList.add") + @PostMapping("/add") + public Result add(@RequestBody Role role){ + return Result.seccess(roleService.add(role)); + + } +} -- Gitblit v1.8.0