题库调整

dev_aliyun_beta
cxt 5 years ago
parent f4a2fb81c6
commit c45601ebcf

@ -36,8 +36,8 @@ class Users::QuestionBanksController < Users::BaseController
.group('graduation_tasks.gtask_bank_id').count
when 'gtopic' then
StudentGraduationTopic.joins(:graduation_topic)
.where(gtopic_banks: { gtopic_bank_id: question_bank_ids }).where('status != 0')
.group('gtopic_banks.gtopic_bank_id').count
.where(graduation_topics: { gtopic_bank_id: question_bank_ids }).where('status != 0')
.group('graduation_topics.gtopic_bank_id').count
end
end

Loading…
Cancel
Save