企业列表出来了

master
法外狂徒张三 2024-09-09 15:41:24 +08:00
parent fc3174a18d
commit b6e54db3c4
1 changed files with 1 additions and 2 deletions

View File

@ -131,10 +131,9 @@ public class SysApitypeController extends BaseController
return JavaGetConfig.standing(standing); return JavaGetConfig.standing(standing);
} }
Long userId = SecurityUtils.getUserId();
@PostMapping("/addUserRole/{res}") @PostMapping("/addUserRole/{res}")
public Result updateCreateByUserId(@PathVariable("res") Integer res) { public Result updateCreateByUserId(@PathVariable("res") Integer res) {
Long userId = SecurityUtils.getUserId();
log.info("userId:"+userId);
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId); UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
if(res!=1||userRole!=null){ if(res!=1||userRole!=null){
return Result.error(); return Result.error();