|
|
|
@ -21,7 +21,7 @@ class Users::ShixunService
|
|
|
|
|
def category_scope_shixuns
|
|
|
|
|
case params[:category]
|
|
|
|
|
when 'study' then
|
|
|
|
|
laboratory.shixuns.where(id: user.study_shixuns)
|
|
|
|
|
user.study_shixuns.where(shixuns: {id: laboratory.shixuns})
|
|
|
|
|
when 'manage' then
|
|
|
|
|
laboratory.shixuns.where(id: user.shixuns)
|
|
|
|
|
else
|
|
|
|
|