|
@@ -84,10 +84,10 @@ public class StudentController extends BaseController {
|
|
|
|
|
|
Map<Long, List<TenantActivationCode>> groupByUserId = new HashMap<>();
|
|
|
if (!rows.isEmpty() && query.getTenantAlbumPurchaseId() != null) {
|
|
|
- List<Long> studentIdList = rows.stream().map(Student::getUserId).collect(Collectors.toList());
|
|
|
+ List<String> studentPhones = rows.stream().map(StudentVo::getPhone).collect(Collectors.toList());
|
|
|
groupByUserId = tenantActivationCodeService.lambdaQuery()
|
|
|
.eq(TenantActivationCode::getId, query.getTenantAlbumPurchaseId())
|
|
|
- .in(TenantActivationCode::getActivationUserId, studentIdList)
|
|
|
+ .in(TenantActivationCode::getActivationPhone, studentPhones)
|
|
|
.list().stream().collect(Collectors.groupingBy(TenantActivationCode::getActivationUserId));
|
|
|
}
|
|
|
|