feat: 提交课表冲突检查相关功能模块
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
||||
<?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.ClassRoomCalendarMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JXCDL">
|
||||
<id column="ID" property="id" />
|
||||
<result column="编号" property="bh" />
|
||||
<result column="名称" property="mc" />
|
||||
<result column="可排课" property="kpk" />
|
||||
<result column="日期" property="rq" />
|
||||
<result column="节次" property="jc" />
|
||||
<result column="创建时间" property="cjsj" />
|
||||
<result column="备注" property="bz" />
|
||||
<result column="教室编号" property="jsbh" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID, 编号, 名称, 可排课, 日期, 节次, 创建时间, 备注, 教室编号
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教学场地历
|
||||
<where>
|
||||
<if test="jxcdl.bh != null and jxcdl.bh != ''">
|
||||
AND 编号 LIKE CONCAT('%', #{jxcdl.bh}, '%')
|
||||
</if>
|
||||
<if test="jxcdl.mc != null and jxcdl.mc != ''">
|
||||
AND 名称 LIKE CONCAT('%', #{jxcdl.mc}, '%')
|
||||
</if>
|
||||
<if test="jxcdl.jsbh != null and jxcdl.jsbh != ''">
|
||||
AND 教室编号 = #{jxcdl.jsbh}
|
||||
</if>
|
||||
<if test="jxcdl.kpk != null">
|
||||
AND 可排课 = #{jxcdl.kpk}
|
||||
</if>
|
||||
<if test="jxcdl.jc != null">
|
||||
AND 节次 = #{jxcdl.jc}
|
||||
</if>
|
||||
<if test="jxcdl.delFlag != null">
|
||||
AND DEL_FLAG = #{jxcdl.delFlag}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 日期, 节次
|
||||
</select>
|
||||
|
||||
<select id="selectByJsbh" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教学场地历
|
||||
WHERE 教室编号 = #{jsbh}
|
||||
ORDER BY 日期, 节次
|
||||
</select>
|
||||
|
||||
<select id="selectByRq" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教学场地历
|
||||
WHERE 日期 = #{rq}
|
||||
ORDER BY 节次
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user