@ -1271,16 +1271,17 @@ class ExercisesController < ApplicationController
#搜索
ifparams[:search].present?
@exercise_users_list=@exercise_users_list.joins(user::user_extension).where("CONCAT(lastname, firstname) like ? OR student_id like ?","%#{params[:search]}%","%#{params[:search]}%")
@ -1035,10 +1030,12 @@ class PollsController < ApplicationController
@poll_users_list=@poll_users_list.joins(user::user_extension).where("CONCAT(lastname, firstname) like ? OR student_id like ?","%#{search_content}%","%#{search_content}%")