|
@@ -5,14 +5,10 @@
|
5
|
5
|
<update id="deleteById">
|
6
|
6
|
update e_base set deleted=10 where examid=#{examid}
|
7
|
7
|
</update>
|
8
|
|
- <!--删除关联的班级和科目、试卷、试卷批阅人-->
|
9
|
|
- <delete id="deleteClassAndSubjectById">
|
10
|
|
- delete ecq,epc,ep,s,c,cs from e_subject s left join e_class c on s.examid=c.examid
|
11
|
|
- left join e_class_student cs on cs.examid=c.examid
|
12
|
|
- left join e_paper ep on s.esid = ep.esid
|
13
|
|
- left join e_paper_correctclass epc on ep.epid = epc.epid
|
14
|
|
- left join e_paper_correctquestion ecq on ep.epid = ecq.epid
|
15
|
|
- where s.examid=#{examid}
|
|
8
|
+ <!--删除关联的班级-->
|
|
9
|
+ <delete id="deleteClassById">
|
|
10
|
+ delete c,cs from e_class c left join e_class_student cs on cs.examid=c.examid
|
|
11
|
+ where c.examid=#{examid}
|
16
|
12
|
</delete>
|
17
|
13
|
<!--考试列表-->
|
18
|
14
|
<select id="listAll" resultType="java.util.Map">
|