|
|
|
@ -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
|
|
|
|
|