|
|
@@ -194,4 +194,28 @@ public class KZTRoleController extends BaseController {
|
|
|
}
|
|
|
return HttpResult.ok(list);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/8/14 16:36
|
|
|
+ * @Description:
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/findUseId")
|
|
|
+ @ApiOperation(value = "通过用户Id查询权限表")
|
|
|
+ public HttpResult<Object> findByUseId(String userId) {
|
|
|
+ if (userId==null) {
|
|
|
+ throw new SystemException("用户id不能为空!!");
|
|
|
+ }
|
|
|
+ int count =0;
|
|
|
+ try{
|
|
|
+ if("admin".equals(userId)){
|
|
|
+ count=1;
|
|
|
+ }else{
|
|
|
+ count= sysMenuService.findByUseId(userId,"2");
|
|
|
+ }
|
|
|
+ }catch(Exception e){
|
|
|
+ }
|
|
|
+ return HttpResult.ok(count>0?true:false);
|
|
|
+ }
|
|
|
+
|
|
|
}
|