forked from liweijie/education
37 lines
1.3 KiB
XML
37 lines
1.3 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.JYSCKCBMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JYSCKCB">
|
|
<result column="年度" property="nd" />
|
|
<result column="教员编号" property="jybh" />
|
|
<result column="课程表" property="kcb" />
|
|
<result column="更新时间" property="gxsj" />
|
|
<result column="编号" property="bh" />
|
|
<result column="有课表" property="ykb" />
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
年度, 教员编号, 课程表, 更新时间, 编号, 有课表
|
|
</sql>
|
|
|
|
<!-- 分页查询教员输出课程表列表 -->
|
|
<select id="selectPageList" resultMap="BaseResultMap">
|
|
SELECT
|
|
<include refid="Base_Column_List" />
|
|
FROM "教员输出课程表"
|
|
WHERE 1=1
|
|
<if test="jysckcb.jybh != null and jysckcb.jybh != ''">
|
|
AND 教员编号 = #{jysckcb.jybh}
|
|
</if>
|
|
<if test="jysckcb.nd != null">
|
|
AND 年度 = #{jysckcb.nd}
|
|
</if>
|
|
<if test="jysckcb.ykb != null">
|
|
AND 有课表 = #{jysckcb.ykb}
|
|
</if>
|
|
ORDER BY 年度 DESC, 教员编号
|
|
</select>
|
|
|
|
</mapper>
|