主页数据根据真实用户ID查询
parent
8819791e5a
commit
2dc6d70f83
|
@ -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<JSONObject> list = JSONObject.parseObject(data, List.class);
|
||||
|
||||
|
@ -196,7 +197,8 @@ public class IndexServiceImpl implements IndexService {
|
|||
private List<JSONObject> 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);
|
||||
|
|
Loading…
Reference in New Issue