|
@@ -62,9 +62,10 @@
|
62
|
62
|
<!--根据考试id获取考试状态-->
|
63
|
63
|
<select id="getExamStateById" resultType="com.xhkjedu.sexam.vo.exam.EBaseVo">
|
64
|
64
|
select eb.examid,eb.examname,eb.gradeid,eb.examstate,eb.schoolid
|
65
|
|
- ,count(case when es.esstate!=1 then es.esid else null end)wwcnum
|
|
65
|
+ ,count(case when es.esstate!=1 then es.esid else null end)wwcnum,min(ep.answered)answered
|
66
|
66
|
,min(ifnull(UNIX_TIMESTAMP(concat(es.sdate,' ',es.begintime)),0))begintime
|
67
|
67
|
from e_base eb left join e_subject es on eb.examid = es.examid
|
|
68
|
+ left join e_paper ep on es.esid = ep.esid
|
68
|
69
|
where eb.examid=#{examid}
|
69
|
70
|
</select>
|
70
|
71
|
<!--考试设置状态-->
|