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);