超级管理员的实训审批
This commit is contained in:
parent
9e2049e0cf
commit
aac531ca54
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue