From 4dff1e3810de264a477a2b9067807e61cb5e0e74 Mon Sep 17 00:00:00 2001 From: guyuliang Date: Mon, 26 Aug 2024 20:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=94=A8=E6=88=B7=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/bocloud/sms/service/IndexServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java index 97a00a0..db10b8d 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java @@ -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 userDataJAuthJson = JSONObject.parseObject(userDataAuthStr, List.class); + List authResList = JSONObject.parseObject(userDataJAuthJson.get(0).getString("authRes"),List.class); + resultMap.put("userAuthList", authResList.size()); return new GeneralResult(true, resultMap, "查询成功"); } catch (Exception e) {