企业列表出来了
parent
df7e949caf
commit
c13d1f1d24
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue