mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
提交用户查询
This commit is contained in:
@@ -84,31 +84,15 @@ public class CasesRecommendPushRecordServiceImpl implements ICasesRecommendPushR
|
|||||||
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getDeptIds())) {
|
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getDeptIds())) {
|
||||||
long tt = System.currentTimeMillis();
|
long tt = System.currentTimeMillis();
|
||||||
for (String orgId : casesRecommendLaunch.getDeptIds()) {
|
for (String orgId : casesRecommendLaunch.getDeptIds()) {
|
||||||
UserListParam build = UserListParam.builder().departId(orgId).pageSize(100).build();
|
UserListParam build = UserListParam.builder().departId(orgId).pageSize(1000).build();
|
||||||
List<UserInfoList> allUserList = thirdApi.getAllUserList(build, token);
|
List<UserInfoList> allUserList = thirdApi.getAllUserList(build, token);
|
||||||
if (CollectionUtil.isNotEmpty(allUserList)) {
|
if (CollectionUtil.isNotEmpty(allUserList)) {
|
||||||
for (UserInfoList userInfo : allUserList) {
|
for (UserInfoList userInfo : allUserList) {
|
||||||
userIds.add(String.valueOf(userInfo.getId()));
|
userIds.add(String.valueOf(userInfo.getId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// long ts = System.currentTimeMillis();
|
|
||||||
// List<OrgRootBean.ResultData> orgChildTree = thirdApi.getOrgChildTree(orgId, token);
|
|
||||||
// log.info("查询组织数据耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
|
||||||
// if (CollectionUtil.isNotEmpty(orgChildTree)) {
|
|
||||||
// for (OrgRootBean.ResultData result : orgChildTree) {
|
|
||||||
// UserListParam build = UserListParam.builder().departId(result.getId()).pageSize(100).build();
|
|
||||||
// List<UserInfoList> allUserList = thirdApi.getAllUserList(build, token);
|
|
||||||
// if (CollectionUtil.isNotEmpty(allUserList)) {
|
|
||||||
// for (UserInfoList userInfo : allUserList) {
|
|
||||||
// userIds.add(String.valueOf(userInfo.getId()));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// log.info("{} 机构查询耗时 {}秒", orgId, (System.currentTimeMillis() - ts) / 1000);
|
|
||||||
}
|
}
|
||||||
log.info("组织查询耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
log.info("用户查询耗时 {}秒", (System.currentTimeMillis() - tt) / 1000);
|
||||||
}
|
}
|
||||||
// 受众关联
|
// 受众关联
|
||||||
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getGroupIds())) {
|
if (CollectionUtil.isNotEmpty(casesRecommendLaunch.getGroupIds())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user