@ -136,7 +136,8 @@ class SchoolController < ApplicationController
end
else
if(condition=='')
@school=School.reorder('CONVERT (name USING gbk) COLLATE gbk_chinese_ci asc').page((params[:page].to_i||1)).per(100)
#当前学校排在第一个的位置
@school=School.reorder('id=2536 desc, CONVERT (name USING gbk) COLLATE gbk_chinese_ci asc').page((params[:page].to_i||1)).per(100)
@school_count=School.count
else
@school=School.where("name like '%#{chinese.join("")}%' and pinyin like '%#{pinyin.join("")}%'").reorder('CONVERT (name USING gbk) COLLATE gbk_chinese_ci asc').page((params[:page].to_i||1)).per(100)