forked from liweijie/education
feat: 提交课表冲突检查相关功能模块
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
<?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.OfficeTaskBookMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JYSRWS">
|
||||
<id column="编号" property="bh" />
|
||||
<result column="教学任务编号" property="jxrwbh" />
|
||||
<result column="教研室代号" property="jysdh" />
|
||||
<result column="状态" property="zt" />
|
||||
<result column="上报时间" property="sbsj" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
编号, 教学任务编号, 教研室代号, 状态, 上报时间, DEL_FLAG
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教研室任务书
|
||||
<where>
|
||||
<if test="jysrws.delFlag != null">
|
||||
AND DEL_FLAG = #{jysrws.delFlag}
|
||||
</if>
|
||||
<if test="jysrws.jxrwbh != null and jysrws.jxrwbh != ''">
|
||||
AND 教学任务编号 = #{jysrws.jxrwbh}
|
||||
</if>
|
||||
<if test="jysrws.jysdh != null and jysrws.jysdh != ''">
|
||||
AND 教研室代号 = #{jysrws.jysdh}
|
||||
</if>
|
||||
<if test="jysrws.zt != null and jysrws.zt != ''">
|
||||
AND 状态 = #{jysrws.zt}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 编号
|
||||
</select>
|
||||
|
||||
<select id="selectByJxrwbh" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教研室任务书
|
||||
WHERE 教学任务编号 = #{jxrwbh}
|
||||
AND DEL_FLAG = '0'
|
||||
ORDER BY 编号
|
||||
</select>
|
||||
|
||||
<select id="selectByJysdh" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教研室任务书
|
||||
WHERE 教研室代号 = #{jysdh}
|
||||
AND DEL_FLAG = '0'
|
||||
ORDER BY 编号
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user