This commit is contained in:
kingChan 2024-06-12 17:08:29 +08:00
parent 9ca81b06b0
commit 025e3f1ac7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Admins::GlccExamineMaterial < ApplicationQuery
materials = GlccMediumTermExamineMaterial.all
# term
term = params[:term].zero ? [1, 2] : params[:term]
term = params[:term].to_i.zero ? [1, 2] : params[:term].to_i
materials = materials.where(term: term) if term.present?
#year
year = if params[:date]