题库调整

dev_aliyun_beta
cxt 5 years ago
parent c45601ebcf
commit e7d419593f

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

Loading…
Cancel
Save