瀏覽代碼

fix学生激活码

Eric 1 年之前
父節點
當前提交
d14493d38c

+ 1 - 1
cooleshow-app/src/main/java/com/yonge/cooleshow/tenant/controller/StudentController.java

@@ -85,7 +85,7 @@ public class StudentController extends BaseController {
         if (!rows.isEmpty() && query.getTenantAlbumPurchaseId() != null) {
             List<Long> studentIdList = rows.stream().map(Student::getUserId).collect(Collectors.toList());
              groupByUserId = tenantActivationCodeService.lambdaQuery()
-                    .eq(TenantActivationCode::getId, query.getTenantAlbumPurchaseId())
+                    .eq(TenantActivationCode::getTenantAlbumPurchaseId, query.getTenantAlbumPurchaseId())
                     .in(TenantActivationCode::getActivationUserId, studentIdList)
                     .list().stream().collect(Collectors.groupingBy(TenantActivationCode::getActivationUserId));
         }