You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
418 B
9 lines
418 B
json.shixun_lists @subject.stages.each do |stage|
|
|
json.array! stage.stage_shixuns do |stage_shixun|
|
|
shixun = stage_shixun.shixun
|
|
json.number "#{stage.position}-#{stage_shixun.position}"
|
|
json.shixun_name shixun.name
|
|
json.member_count shixun.myshixuns_count
|
|
json.school_count UserExtension.where(user_id: shixun.myshixuns.pluck(:user_id)).pluck(:school_id).uniq.length
|
|
end
|
|
end |