diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/team/impl/RoomBdLeadServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/team/impl/RoomBdLeadServiceImpl.java index 08a7d5d2..8ab65e58 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/team/impl/RoomBdLeadServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/team/impl/RoomBdLeadServiceImpl.java @@ -6,6 +6,7 @@ import com.red.circle.other.infra.database.rds.dao.team.RoomBdLeadDAO; import com.red.circle.other.infra.database.rds.entity.team.RoomBdLead; import com.red.circle.other.infra.database.rds.service.team.RoomBdLeadService; +import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Set; @@ -48,6 +49,10 @@ public class RoomBdLeadServiceImpl extends BaseServiceImpl listByUserIds(Set userIds) { + if (userIds == null || userIds.isEmpty()) { + return new ArrayList<>(); + } + return query() .in(RoomBdLead::getUserId, userIds) .list();