去除注释

dev_aliyun2
daiao 5 years ago committed by harry
parent 78ae7933f1
commit a5723f1b87

@ -21,15 +21,12 @@ class Admins::UserSchoolsStatisticQuery < ApplicationQuery
end
total = schools.count
Rails.logger.info("######:#{total}")
# 根据排序字段进行查询
schools = query_by_sort_column(schools.group(:id), params[:sort_by])
#schools = custom_sort(schools, params[:sort_by], params[:sort_direction])
schools = schools.limit(page_size).offset(offset).to_a
# 查询并组装其它数据
schools = package_other_data(schools)
Rails.logger.info("######:#{total}")
Rails.logger.info("######:#{schools.inspect}")
[total, schools]
end

Loading…
Cancel
Save