片长查询报错问题
This commit is contained in:
parent
6beceac159
commit
12484e067b
@ -302,8 +302,7 @@ public class CommunityBossServiceImpl extends AbstractService implements ICommun
|
||||
return new ArrayList<>();
|
||||
}
|
||||
params.put("communityBossUserIds", new ArrayList<>(userIdSet));
|
||||
params.put("communityBossParentUserIds", new ArrayList<>(userIdSet));
|
||||
|
||||
params.remove("keywords");
|
||||
}
|
||||
List<CommunityBossDTO> communityBossDTOs = communityBossDao.listCommunityBoss(params);
|
||||
setUserInfo(communityBossDTOs);
|
||||
|
@ -196,17 +196,12 @@
|
||||
AND
|
||||
t1.community_boss_id = #{communityBossId}
|
||||
</if>
|
||||
<if test="communityBossUserIds != null and communityBossUserIds.size > 0 and communityBossParentUserIds != null and communityBossParentUserIds.size > 0">
|
||||
<if test="communityBossUserIds != null and communityBossUserIds.size > 0">
|
||||
AND (
|
||||
t1.community_boss_user_id IN
|
||||
<foreach collection="communityBossUserIds" index="index" open="(" separator="," close=")">
|
||||
#{communityBossUserIds[${index}]}
|
||||
</foreach>
|
||||
OR
|
||||
t1.community_boss_parent_user_id IN
|
||||
<foreach collection="communityBossParentUserIds" index="index" open="(" separator="," close=")">
|
||||
#{communityBossParentUserIds[${index}]}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="communityBossParentUserIds != null and communityBossParentUserIds.size > 0">
|
||||
|
Loading…
Reference in New Issue
Block a user