企业列表出来了
parent
0f1ee48b87
commit
fa84adbfe3
|
@ -131,10 +131,15 @@ public class SysApitypeController extends BaseController
|
||||||
return JavaGetConfig.standing(standing);
|
return JavaGetConfig.standing(standing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/abc")
|
||||||
|
public static Long abc(){
|
||||||
|
return SecurityUtils.getUserId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/addUserRole/{res}")
|
@PostMapping("/addUserRole/{res}")
|
||||||
public Result updateCreateByUserId(@PathVariable("res") Integer res) {
|
public Result updateCreateByUserId(@PathVariable(value = "res") Integer res) {
|
||||||
Long userId = SecurityUtils.getUserId();
|
Long userId = abc();
|
||||||
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();
|
||||||
|
@ -142,8 +147,4 @@ public class SysApitypeController extends BaseController
|
||||||
return Result.success(sysApitypeService.insertUserRole(userId));
|
return Result.success(sysApitypeService.insertUserRole(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/abc")
|
|
||||||
public Long abc(){
|
|
||||||
return SecurityUtils.getUserId();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue