pg <@p p=" and %s">card <@p p=" and (name like ? ">name <@p p=" or category like ? ">category <@p p=" or createdepartment like ? )">createdepartment ]]> userCard and exam_id = exampaper.id)) = 1,"已答","未答")) as userstate from et_exam_exampaper_and_editexampaper as exampaper inner join et_exam_limitation as limitation on exampaper.id = limitation.exam_id left join et_exam_limitation_course as course on limitation.user_id = course.course_id left join et_exam_limitation_class as class on limitation.user_id = class.class_id where 1=0 <@p p=" or %s">pg <@p p=" and %s">state <@p p=" and (user_id IN(%s)" f="?">user_id <@p p=" or %s">course_person_id <@p p=" or %s)">class_person_id <@p p=" and (name like ? ">name <@p p=" or category like ? )">category group by id ]]> name ]]>