|
|
@@ -281,7 +281,7 @@ public class ExpertInviteManage { |
|
|
|
LambdaQueryWrapper<ExpertUserFullInfo> query = buildBaseExpertQuery(); |
|
|
|
query.notIn(!tmpAvoidCompany.isEmpty(), ExpertUserFullInfo::getCompany, tmpAvoidCompany); |
|
|
|
if (avoidCompany) { |
|
|
|
query.notExists("select 1 from expert_avoid_company eac where eac.user_id = expert_user_full_info.user_id" + |
|
|
|
query.notExists("select 1 from expert_avoid_company eac where eac.user_id = nd_expert_user_full_info.user_id" + |
|
|
|
" and company_name in ({0})", CollUtils.joinByComma(avoidRule.getAvoidUnitIdList())); |
|
|
|
} |
|
|
|
// 处理专家层级 |
|
|
@@ -357,7 +357,7 @@ public class ExpertInviteManage { |
|
|
|
} |
|
|
|
LambdaQueryWrapper<ExpertUserFullInfo> query = buildBaseExpertQuery(); |
|
|
|
query.notIn(ExpertUserFullInfo::getCompany, avoidRule.getAvoidUnitIdList()); |
|
|
|
query.notExists("select 1 from expert_avoid_company eac where eac.user_id = expert_user_full_info.user_id" + |
|
|
|
query.notExists("select 1 from expert_avoid_company eac where eac.user_id = nd_expert_user_full_info.user_id" + |
|
|
|
" and company_name in ({0})", CollUtils.joinByComma(avoidRule.getAvoidOrgIdList())); |
|
|
|
|
|
|
|
// 处理专家层级 |
|
|
|