feat: 提交课表冲突检查相关功能模块
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.roomroot.jwgl.mapper.SSKCMapper">
|
||||
|
||||
<select id="selectBySemester" resultType="com.roomroot.jwgl.entity.SSKC">
|
||||
SELECT * FROM 实施_课程
|
||||
WHERE 年度 = #{nd} AND 学期第次 = #{xqdc} AND 停用 = 0
|
||||
</select>
|
||||
|
||||
<select id="selectByClassBh" resultType="com.roomroot.jwgl.entity.SSKC">
|
||||
SELECT DISTINCT sc.* FROM 实施_课程 sc
|
||||
INNER JOIN 实施_课程学员队 scxd ON sc.编号 = scxd.实施_课程编号
|
||||
WHERE scxd.学员队编号 = #{classBh} AND sc.年度 = #{nd} AND sc.停用 = 0
|
||||
</select>
|
||||
|
||||
<select id="selectByCourseBhAndClassBh" resultType="com.roomroot.jwgl.entity.SSKC">
|
||||
SELECT sc.* FROM 实施_课程 sc
|
||||
INNER JOIN 实施_课程学员队 scxd ON sc.编号 = scxd.实施_课程编号
|
||||
WHERE sc.课编号 = #{courseBh} AND scxd.学员队编号 = #{classBh} AND sc.年度 = #{nd} AND sc.停用 = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user