From 2dc6d70f8383b8b557a3fe8a3a99f92f79588c7b Mon Sep 17 00:00:00 2001 From: guyuliang Date: Fri, 30 Aug 2024 15:16:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E6=95=B0=E6=8D=AE=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E7=9C=9F=E5=AE=9E=E7=94=A8=E6=88=B7ID=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bocloud/sms/service/IndexServiceImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 149f0eb..191173b 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 @@ -38,7 +38,7 @@ public class IndexServiceImpl implements IndexService { try { JSONObject param = new JSONObject(); User user = userRepository.query(requestContext.getTarget()); - param.put("userId", "1111"); + param.put("userId", user.getUserId()); param.put("page", pager.getPage()); param.put("limit", pager.getRows()); String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class); @@ -84,7 +84,7 @@ public class IndexServiceImpl implements IndexService { private JSONObject getTaskList(RequestContext requestContext) throws Exception { JSONObject param = new JSONObject(); User user = userRepository.query(requestContext.getTarget()); - param.put("userId", "1111"); + param.put("userId", user.getUserId()); param.put("page", 1); param.put("limit", Integer.MAX_VALUE); String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class); @@ -97,7 +97,8 @@ public class IndexServiceImpl implements IndexService { try { //获取用户数据权限申请数量 JSONObject userParam = new JSONObject(); - userParam.put("userId", "1111"); + User user = userRepository.query(requestContext.getTarget()); + userParam.put("userId", user.getUserId()); String data = ykUtil.call(YkInfo.getCountTaskByUser, userParam, JSONArray.class); List list = JSONObject.parseObject(data, List.class); @@ -196,7 +197,8 @@ public class IndexServiceImpl implements IndexService { private List getUserAppList(RequestContext requestContext) throws Exception { //查询当前用户授权应用 JSONObject param = new JSONObject(); - param.put("userId", "1111"); + User user = userRepository.query(requestContext.getTarget()); + param.put("userId", user.getUserId()); param.put("type", "user"); String result = ykUtil.call(YkInfo.getUserAppList, param, JSONArray.class); return JSONObject.parseObject(result, List.class);