pg@p>
<@p p=" and %s">card@p>
<@p p=" and (name like ? ">name@p>
<@p p=" or category like ? ">category@p>
<@p p=" or createdepartment like ? )">createdepartment@p>
]]>
userCard@p> 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 p=" and %s">state@p>
<@p p=" and (user_id IN(%s)" f="?">user_id@p>
<@p p=" or %s">course_person_id@p>
<@p p=" or %s)">class_person_id@p>
<@p p=" and (name like ? ">name@p>
<@p p=" or category like ? )">category@p>
group by id
]]>
name@p>
]]>