超级管理员的实训审批

This commit is contained in:
cxt 2017-09-30 23:12:39 +08:00
parent 9e2049e0cf
commit aac531ca54
1 changed files with 1 additions and 1 deletions

View File

@ -1532,7 +1532,7 @@ end
@sub_type = 5
@type = trial_authorization_status params[:type]
# sql = select * from apply_actions where dealer_id is null
@authorizations = ApplyAction.where(:container_type => "ApplyShixun", :status => @type,:dealer_id =>'').order("created_at desc")
@authorizations = ApplyAction.where(:container_type => "ApplyShixun", :status => @type).order("created_at desc")
search = params[:search]
unless search.blank?
@authorizations = @authorizations.where(:container_id => Shixun.where(:id => @authorizations.map(&:container_id)).where("name like '%#{search}%'").map(&:id)).order("created_at desc")