Browse Source

删除未调用sql

tags/正式版本
雍文秀 2 years ago
parent
commit
a7d737b4cc

+ 0
- 3
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/EClassMapper.java View File

35
 
35
 
36
     //按班设置教师列表
36
     //按班设置教师列表
37
     List<Map> listClassTeacher(@Param("classids") String classids, @Param("subjectid") String subjectid);
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 View File

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

+ 0
- 4
sexam/src/main/resources/mapper/exam/EClassMapper.xml View File

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

+ 0
- 8
sexam/src/main/resources/mapper/exam/ESubjectMapper.xml View File

9
         </foreach>
9
         </foreach>
10
     </update>
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
     <!--根据考试科目id更改考试科目状态-->
12
     <!--根据考试科目id更改考试科目状态-->
21
     <update id="updateExamSubjectState">
13
     <update id="updateExamSubjectState">
22
         update e_subject set esstate=#{esstate} where esid = #{esid};
14
         update e_subject set esstate=#{esstate} where esid = #{esid};

Loading…
Cancel
Save