forked from liweijie/education
133 lines
5.7 KiB
XML
133 lines
5.7 KiB
XML
<?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.SSDKSQMapper">
|
|
|
|
<!-- 调课申请列表结果映射 -->
|
|
<resultMap id="ScheduleAdjustApplyMap" type="com.roomroot.jwgl.vo.courserunning.ScheduleAdjustApplyVO">
|
|
<result column="调课申请编号" property="ssdksqbh"/>
|
|
<result column="实施_课程表编号" property="sskcbbh"/>
|
|
<result column="课程名称" property="kcmc"/>
|
|
<result column="申请教员编号" property="sqjybh"/>
|
|
<result column="申请教员姓名" property="sqjyxm"/>
|
|
<result column="事由" property="sy"/>
|
|
<result column="新日期" property="rq"/>
|
|
<result column="新节次" property="jc"/>
|
|
<result column="年度" property="nd"/>
|
|
<result column="创建时间" property="cjsj"/>
|
|
<result column="教研室批准状态" property="jyspzzt"/>
|
|
<result column="教研室查收状态" property="jyscszt"/>
|
|
<result column="发回意见" property="fhyj"/>
|
|
<result column="删除状态" property="sczt"/>
|
|
</resultMap>
|
|
|
|
<!-- 调课申请详情结果映射 -->
|
|
<resultMap id="ScheduleAdjustDetailMap" type="com.roomroot.jwgl.vo.courserunning.ScheduleAdjustDetailVO">
|
|
<result column="调课申请编号" property="ssdksqbh"/>
|
|
<result column="实施_课程表编号" property="sskcbbh"/>
|
|
<result column="课程名称" property="kcmc"/>
|
|
<result column="申请教员编号" property="sqjybh"/>
|
|
<result column="申请教员姓名" property="sqjyxm"/>
|
|
<result column="事由" property="sy"/>
|
|
<result column="新日期" property="rq"/>
|
|
<result column="新节次" property="jc"/>
|
|
<result column="年度" property="nd"/>
|
|
<result column="教学内容" property="jxnr"/>
|
|
<result column="教学要点" property="jxyd"/>
|
|
<result column="教学方法" property="jxff"/>
|
|
<result column="教学保障备注" property="jxbzbz"/>
|
|
<result column="用车信息" property="ycxx"/>
|
|
<result column="备注" property="bz"/>
|
|
<result column="创建时间" property="cjsj"/>
|
|
<result column="教研室批准状态" property="jyspzzt"/>
|
|
<result column="教研室批准时间" property="jyspzsj"/>
|
|
<result column="教研室批准人编号" property="jyspzrbh"/>
|
|
<result column="教研室查收状态" property="jyscszt"/>
|
|
<result column="教研室查收时间" property="jyscssj"/>
|
|
<result column="教研室查收人编号" property="jyscsrbh"/>
|
|
</resultMap>
|
|
|
|
<!-- 分页查询调课申请列表 -->
|
|
<select id="selectPageList" resultMap="ScheduleAdjustApplyMap">
|
|
SELECT
|
|
a.编号 AS 调课申请编号,
|
|
a.实施_课程表编号,
|
|
c.课名称 AS 课程名称,
|
|
a.申请教员编号,
|
|
j.姓名 AS 申请教员姓名,
|
|
a.事由,
|
|
a.日期 AS 新日期,
|
|
a.节次 AS 新节次,
|
|
a.年度,
|
|
a.创建时间,
|
|
a.教研室批准状态,
|
|
a.教研室查收状态,
|
|
a.发回意见,
|
|
a.删除状态
|
|
FROM "实施_调课申请" a
|
|
LEFT JOIN "实施_课程表" b ON a.实施_课程表编号 = b.编号
|
|
LEFT JOIN "实施_课程" e ON b.实施_课程编号 = e.编号
|
|
LEFT JOIN "课程表" c ON e.课编号 = c.课编号
|
|
LEFT JOIN "教员表" j ON a.申请教员编号 = j.编号
|
|
WHERE 1=1
|
|
<if test="sskcbbh != null and sskcbbh != ''">
|
|
AND a.实施_课程表编号 = #{sskcbbh}
|
|
</if>
|
|
<if test="sqjybh != null and sqjybh != ''">
|
|
AND a.申请教员编号 = #{sqjybh}
|
|
</if>
|
|
<if test="nd != null">
|
|
AND a.年度 = #{nd}
|
|
</if>
|
|
<if test="jyspzzt != null">
|
|
AND a.教研室批准状态 = #{jyspzzt}
|
|
</if>
|
|
<if test="jyscszt != null">
|
|
AND a.教研室查收状态 = #{jyscszt}
|
|
</if>
|
|
<if test="sczt != null">
|
|
AND a.删除状态 = #{sczt}
|
|
</if>
|
|
<if test="cjsjStart != null and cjsjStart != ''">
|
|
AND a.创建时间 >= TO_DATE(#{cjsjStart}, 'YYYY-MM-DD HH24:MI:SS')
|
|
</if>
|
|
<if test="cjsjEnd != null and cjsjEnd != ''">
|
|
AND a.创建时间 <= TO_DATE(#{cjsjEnd}, 'YYYY-MM-DD HH24:MI:SS')
|
|
</if>
|
|
ORDER BY a.创建时间 DESC
|
|
</select>
|
|
|
|
<!-- 根据调课申请编号查询详情 -->
|
|
<select id="selectDetailById" resultMap="ScheduleAdjustDetailMap">
|
|
SELECT
|
|
a.编号 AS 调课申请编号,
|
|
a.实施_课程表编号,
|
|
c.课名称 AS 课程名称,
|
|
a.申请教员编号,
|
|
j.姓名 AS 申请教员姓名,
|
|
a.事由,
|
|
a.日期 AS 新日期,
|
|
a.节次 AS 新节次,
|
|
a.年度,
|
|
a.教学内容,
|
|
a.教学要点,
|
|
a.教学方法,
|
|
a.教学保障备注,
|
|
a.用车信息,
|
|
a.备注,
|
|
a.创建时间,
|
|
a.教研室批准状态,
|
|
a.教研室批准时间,
|
|
a.教研室批准人编号,
|
|
a.教研室查收状态,
|
|
a.教研室查收时间,
|
|
a.教研室查收人编号
|
|
FROM "实施_调课申请" a
|
|
LEFT JOIN "实施_课程表" b ON a.实施_课程表编号 = b.编号
|
|
LEFT JOIN "实施_课程" e ON b.实施_课程编号 = e.编号
|
|
LEFT JOIN "课程表" c ON e.课编号 = c.课编号
|
|
LEFT JOIN "教员表" j ON a.申请教员编号 = j.编号
|
|
WHERE a.编号 = #{ssdksqbh}
|
|
</select>
|
|
|
|
</mapper>
|