edit_id@p>
]]>
exam_id@p>
<@p p=" and (name like ? ">name@p>
<@p p=" or department like ? ">department@p>
<@p p=" or user like ? )">user@p>
group by user_id
) examresult
]]>
name@p>
<@p p=" and %s">pg@p>
<@p p=" and %s">card@p>
<@p p=" and %s">createdepartment@p>
order by convert(name using gbk)
]]>
edit_id@p>
<@p p=" and %s">user_id@p>
order by et_exam_editexampaper.num asc
]]>
user_id@p>
<@p p=" and name like ? ">name@p>
group by exam_id
]]>
user_id@p>
<@p p=" and %s">exam_id@p>
]]>
exam_id@p>
]]>
exam_id@p> group by user_id)
union all
select md5(uuid()) as id,user,user_id,department,'已答' as userstate,round(sum(user_score),2) user_score
from et_exam_usertest
where <@p>exam_id@p>
group by user_id
]]>
exam_id@p> group by user_id)
and <@p p="orgcode in (%s)" f="?">user_id@p>
union all
select md5(uuid()) as id,user,user_id,department,'已答' as userstate,round(sum(user_score),2) user_score
from et_exam_usertest
where <@p>exam_id@p>
group by user_id
]]>
exam_id@p> group by user_id)
and <@p p=" l.exam_id = ? ">exam_id@p>
group by user_id
union all
select md5(uuid()) as id,user,user_id,department,'已答' as userstate,round(sum(user_score),2) user_score
from et_exam_usertest
where <@p>exam_id@p>
group by user_id
]]>
exam_id@p> group by user_id)
and <@p p=" class.exam_id = ?">exam_id@p>
group by class.class_person_id
union all
select md5(uuid()) as id,user,user_id,department,'已答' as userstate,round(sum(user_score),2) user_score
from et_exam_usertest
where <@p>exam_id@p>
group by user_id
]]>
exam_id@p> group by user_id)
and <@p p=" course.exam_id = ?">exam_id@p>
group by course.course_person_id
union all
select md5(uuid()) as id,user,user_id,department,'已答' as userstate,round(sum(user_score),2) user_score
from et_exam_usertest
where <@p>exam_id@p>
group by user_id
]]>
exam_id@p>
]]>
exam_id@p>
and (type = '单选题' or type = '多选题' or type = '判断题')
and (mark_teacher = '' or mark_teacher is NULL)
]]>