from cscec8b_project_info_verwhere 1=1${if(len(project_name)>0 && len(project_number)>0,"and project_name='"+project_name+"' and project_number <= '"+project_number+"'","")}${if(len(project_name)>0 && len(project_number)==0,"and project_name= '"+project_name+"'","")}${if(len(project_name)==0 && len(project_number)>0,"and project_number <= '"+project_number+"'","")}limit 1