企业列表出来了

master
法外狂徒张三 2024-09-09 08:57:40 +08:00
parent df7e949caf
commit c13d1f1d24
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ public class SysApitypeController extends BaseController
@PostMapping("/standing/{res}") @PostMapping("/standing/{res}")
public Result updateCreateByUserId(@PathVariable("res") Integer res) { public Result updateCreateByUserId(@PathVariable("res") Integer res) {
Long userId = SecurityUtils.getUserId(); Long userId = SecurityUtils.getUserId();
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
if(res!=1||userRole!=null){ if(res!=1){
return Result.error(); return Result.error();
} }
return Result.success(sysApitypeService.updateCreateByUserId(userId)); return Result.success(sysApitypeService.updateCreateByUserId(userId));