Procházet zdrojové kódy

删除未调用sql

tags/正式版本
雍文秀 před 2 roky
rodič
revize
a7d737b4cc

+ 0
- 3
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/EClassMapper.java Zobrazit soubor

@@ -35,7 +35,4 @@ public interface EClassMapper extends TkMapper<EClass> {
35 35
 
36 36
     //按班设置教师列表
37 37
     List<Map> listClassTeacher(@Param("classids") String classids, @Param("subjectid") String subjectid);
38
-
39
-    //获取考试班级数量
40
-    Integer getClassNumByExamId(@Param("examid") Integer examid);
41 38
 }

+ 0
- 4
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/ESubjectMapper.java Zobrazit soubor

@@ -2,7 +2,6 @@ package com.xhkjedu.sexam.mapper.exam;
2 2
 
3 3
 import com.xhkjedu.sexam.base.TkMapper;
4 4
 import com.xhkjedu.sexam.model.exam.ESubject;
5
-import com.xhkjedu.sexam.vo.exam.ESubjectVo;
6 5
 import org.apache.ibatis.annotations.Param;
7 6
 
8 7
 import java.util.List;
@@ -12,9 +11,6 @@ public interface ESubjectMapper extends TkMapper<ESubject> {
12 11
     //考试设置
13 12
     void setExam(@Param("subjects") List<ESubject> subjects);
14 13
 
15
-    //考试下所有科目
16
-    List<ESubjectVo> listExamSubjects(@Param("examid") Integer examid);
17
-
18 14
     //更新考试科目状态
19 15
     void updateExamSubjectState(@Param("esstate") Integer esstate, @Param("esid") Integer esid);
20 16
 

+ 0
- 4
sexam/src/main/resources/mapper/exam/EClassMapper.xml Zobrazit soubor

@@ -60,8 +60,4 @@
60 60
         where ct.classid in(${classids}) and sb.subjectid=#{subjectid} and u.userstate=1
61 61
         group by ct.classid,ct.teacherid
62 62
     </select>
63
-    <!--获取考试班级数量-->
64
-    <select id="getClassNumByExamId" resultType="java.lang.Integer">
65
-        select count(*) from e_class where examid=#{examid}
66
-    </select>
67 63
 </mapper>

+ 0
- 8
sexam/src/main/resources/mapper/exam/ESubjectMapper.xml Zobrazit soubor

@@ -9,14 +9,6 @@
9 9
         </foreach>
10 10
     </update>
11 11
 
12
-    <!--考试下所有科目-->
13
-    <select id="listExamSubjects" resultType="com.xhkjedu.sexam.vo.exam.ESubjectVo">
14
-        select es.esid,es.subjectid,es.sdate,es.begintime,es.endtime,es.teacherid,
15
-        u.username teachername,es.esstate,es.subjectname
16
-        from e_subject es left join t_user u on es.teacherid=u.userid
17
-        where es.examid=#{examid} order by s.subjectorder
18
-    </select>
19
-
20 12
     <!--根据考试科目id更改考试科目状态-->
21 13
     <update id="updateExamSubjectState">
22 14
         update e_subject set esstate=#{esstate} where esid = #{esid};

Načítá se…
Zrušit
Uložit