|
@@ -63,7 +63,7 @@
|
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,eb.exammode
|
65
|
65
|
,count(case when es.esstate!=1 then es.esid else null end)wwcnum
|
66
|
|
- ,(case when eb.exammode=1 then min(ep.answered) else 0 end)answered
|
|
66
|
+ ,(case when eb.exammode=1 then min(ep.answered) else 1 end)answered
|
67
|
67
|
,min(ifnull(UNIX_TIMESTAMP(concat(es.sdate,' ',es.begintime)),0))begintime
|
68
|
68
|
from e_base eb left join e_subject es on eb.examid = es.examid
|
69
|
69
|
left join e_paper ep on es.esid = ep.esid
|