|
|
@ -158,7 +158,7 @@ class ManagementsController < ApplicationController
|
|
|
|
@sub_type = 8
|
|
|
|
@sub_type = 8
|
|
|
|
@g = Gitlab.client
|
|
|
|
@g = Gitlab.client
|
|
|
|
if params[:search]
|
|
|
|
if params[:search]
|
|
|
|
myshixun_id = Game.where(:identifier => params[:search]).pluck(:myshixun_id)
|
|
|
|
myshixun_id = Game.where("identifier = #{params[:search]} or id = #{params[:search]}").pluck(:myshixun_id)
|
|
|
|
@myshixuns = Myshixun.where(:id => myshixun_id).includes(:shixun)
|
|
|
|
@myshixuns = Myshixun.where(:id => myshixun_id).includes(:shixun)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@myshixuns = Myshixun.where("0=0").includes(:shixun)
|
|
|
|
@myshixuns = Myshixun.where("0=0").includes(:shixun)
|
|
|
|