// 初始化 wrapper = new QueryWrapper(); // 增加条件 wrapper.eq("building_id", building.getId()); wrapper.eq("role", 0); // 查出结果 List<UserCustomerVillage> result = customerVillageService.list(wrapper);