feat: 提交课表冲突检查相关功能模块
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
<?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.ClassRoomLessonMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JSBKCB">
|
||||
<id column="ID" property="id" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
<result column="年度" property="nd" />
|
||||
<result column="教室编号" property="jsbh" />
|
||||
<result column="课程表" property="kcb" />
|
||||
<result column="更新时间" property="gxsj" />
|
||||
<result column="编号" property="bh" />
|
||||
<result column="有课表" property="ykb" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID, 年度, 教室编号, 课程表, 更新时间, 编号, 有课表
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教室输出课程表
|
||||
<where>
|
||||
<if test="jsbkcb.nd != null">
|
||||
AND 年度 = #{jsbkcb.nd}
|
||||
</if>
|
||||
<if test="jsbkcb.jsbh != null and jsbkcb.jsbh != ''">
|
||||
AND 教室编号 LIKE CONCAT('%', #{jsbkcb.jsbh}, '%')
|
||||
</if>
|
||||
<if test="jsbkcb.ykb != null">
|
||||
AND 有课表 = #{jsbkcb.ykb}
|
||||
</if>
|
||||
<if test="jsbkcb.delFlag != null">
|
||||
AND DEL_FLAG = #{jsbkcb.delFlag}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 更新时间 DESC
|
||||
</select>
|
||||
|
||||
<select id="selectByJsbhAndNd" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教室输出课程表
|
||||
WHERE 教室编号 = #{jsbh} AND 年度 = #{nd}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user