소스 검색

Merge remote-tracking branch 'cloud-schoolapi/ywx'

tags/正式版本
王宁 2 년 전
부모
커밋
61d2c4ee63
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      sexam/src/main/resources/mapper/exam/EBaseMapper.xml

+ 4
- 4
sexam/src/main/resources/mapper/exam/EBaseMapper.xml 파일 보기

@@ -14,9 +14,9 @@
14 14
     <!--考试列表-->
15 15
     <select id="listAll" resultType="java.util.Map">
16 16
         select b.examid,b.examname,b.examdate,b.gradeid,b.examtype,b.exammode,b.monitored
17
-        ,b.examstate,group_concat(distinct es.subjectname separator '|')subjectname
17
+        ,b.examstate,group_concat(distinct es.subjectname order by es.esid separator '|')subjectname
18 18
         ,count(distinct case when es.begintime is null or es.begintime='' then es.esid else null end)esnum
19
-        ,min(es.esstate)esstate,min(ep.correcttype)correcttype
19
+        ,min(es.esstate)esstate,min(ifnull(ep.correcttype,0))correcttype
20 20
         ,(case when b.exammode=1 then (count(distinct es.esid)-count(distinct ei.esid))
21 21
         else (select sum(ec.classnum)-count(ps.epsid) from e_class ec
22 22
         left join e_paper_student ps on ec.examid=ps.examid and ps.sstate in(0,1)
@@ -51,7 +51,7 @@
51 51
     </select>
52 52
     <!--考试基本信息(带考试人数)-->
53 53
     <select id="findById2" resultType="java.util.Map">
54
-        select b.examid,b.examname,b.examdate,b.examtype
54
+        select b.examid,b.examname,b.examdate,b.examtype,b.gradeid
55 55
         ,(select sum(c.classnum) from e_class c where c.examid=b.examid)examnum
56 56
         from e_base b where b.examid=#{examid}
57 57
     </select>
@@ -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
65 65
         ,count(case when es.esstate!=1 then es.esid else null end)wwcnum
66
-        ,min(UNIX_TIMESTAMP(concat(es.sdate,' ',es.begintime)))begintime
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 68
         where eb.examid=#{examid}
69 69
     </select>

Loading…
취소
저장