查询用户相关信息

develop
guyuliang 2024-08-26 20:19:25 +08:00
parent 57ec1cc335
commit 4dff1e3810
1 changed files with 4 additions and 1 deletions

View File

@ -105,8 +105,11 @@ public class IndexServiceImpl implements IndexService {
//获取用户数据权限申请数量
JSONObject userParam = new JSONObject();
userParam.put("userId", "1111");
String userRolesStr = ykUtil.call(YkInfo.getUserDataJurisdiction, userParam, JSONArray.class);
String userDataAuthStr = ykUtil.call(YkInfo.getUserDataAuth, userParam, JSONArray.class);
List<JSONObject> userDataJAuthJson = JSONObject.parseObject(userDataAuthStr, List.class);
List<JSONObject> authResList = JSONObject.parseObject(userDataJAuthJson.get(0).getString("authRes"),List.class);
resultMap.put("userAuthList", authResList.size());
return new GeneralResult(true, resultMap, "查询成功");
} catch (Exception e) {