bdleader 查询报错修复

This commit is contained in:
tianfeng 2026-01-04 15:43:07 +08:00
parent 0b0e859fcc
commit de5063b14e

View File

@ -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<RoomBdLeadDAO, RoomBd
@Override
public List<RoomBdLead> listByUserIds(Set<Long> userIds) {
if (userIds == null || userIds.isEmpty()) {
return new ArrayList<>();
}
return query()
.in(RoomBdLead::getUserId, userIds)
.list();