305 lines
14 KiB
XML
305 lines
14 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.StudentTeamTaskMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.XYDRWB">
|
|
<id column="编号" property="bh" />
|
|
<result column="年度" property="nd" />
|
|
<result column="学员队编号" property="xydbh" />
|
|
<result column="课编号" property="kbh" />
|
|
<result column="学期第次" property="xqdc" />
|
|
<result column="教员编号" property="jybh" />
|
|
<result column="课次序号" property="kcxh" />
|
|
<result column="教室编号" property="jsbh" />
|
|
<result column="人数" property="rs" />
|
|
<result column="周课时" property="zks" />
|
|
<result column="学时" property="xs" />
|
|
<result column="课类型" property="klx" />
|
|
<result column="简称" property="jc" />
|
|
<result column="考试地点" property="ksdd" />
|
|
<result column="考试编号" property="ksbh" />
|
|
<result column="选择" property="xz" />
|
|
<result column="教研室代号" property="jysdh" />
|
|
<result column="教研室计划教员编号" property="jysjhjybh" />
|
|
<result column="教研室计划备注" property="jysjhbz" />
|
|
<result column="计划课次序号" property="jhkcxh" />
|
|
<result column="序号标识" property="xhbs" />
|
|
<result column="学员队学期编号" property="xydxqbh" />
|
|
<result column="备注" property="bz" />
|
|
<result column="学分" property="xf" />
|
|
<result column="创建时间" property="cjsj" />
|
|
<result column="变动时间" property="bdsj" />
|
|
<result column="课表变动时间" property="kbbdsj" />
|
|
<result column="考试课时" property="ksks" />
|
|
<result column="编组" property="bz2" />
|
|
<result column="成绩分制" property="cjfz" />
|
|
<result column="不计入学员平均分" property="bjrxypjf" />
|
|
<result column="理论学时" property="llxs" />
|
|
<result column="实践学时" property="sjxs" />
|
|
<result column="考试课时不显示" property="ksksbxs" />
|
|
<result column="配档序号" property="pdxh" />
|
|
<result column="配档起始周" property="pdqsz" />
|
|
<result column="配档按周" property="pdaz" />
|
|
<result column="配档占正课时间" property="pdzzksj" />
|
|
<result column="配档编组" property="pdbz" />
|
|
<result column="配当同班异课选修编组" property="pdtbykxxbz" />
|
|
<result column="配档自定义学时分布数据" property="pdzdyxsfbsj" />
|
|
<result column="配档启用自定义学时" property="pdqyzdyxs" />
|
|
<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="xydrwb.nd != null">
|
|
AND 年度 = #{xydrwb.nd}
|
|
</if>
|
|
<if test="xydrwb.xydbh != null and xydrwb.xydbh != ''">
|
|
AND 学员队编号 LIKE CONCAT('%', #{xydrwb.xydbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.kbh != null and xydrwb.kbh != ''">
|
|
AND 课编号 LIKE CONCAT('%', #{xydrwb.kbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.xqdc != null">
|
|
AND 学期第次 = #{xydrwb.xqdc}
|
|
</if>
|
|
<if test="xydrwb.jybh != null and xydrwb.jybh != ''">
|
|
AND 教员编号 LIKE CONCAT('%', #{xydrwb.jybh}, '%')
|
|
</if>
|
|
<if test="xydrwb.kcxh != null">
|
|
AND 课次序号 = #{xydrwb.kcxh}
|
|
</if>
|
|
<if test="xydrwb.jsbh != null and xydrwb.jsbh != ''">
|
|
AND 教室编号 LIKE CONCAT('%', #{xydrwb.jsbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.rs != null">
|
|
AND 人数 = #{xydrwb.rs}
|
|
</if>
|
|
<if test="xydrwb.zks != null">
|
|
AND 周课时 = #{xydrwb.zks}
|
|
</if>
|
|
<if test="xydrwb.xs != null">
|
|
AND 学时 = #{xydrwb.xs}
|
|
</if>
|
|
<if test="xydrwb.klx != null and xydrwb.klx != ''">
|
|
AND 课类型 LIKE CONCAT('%', #{xydrwb.klx}, '%')
|
|
</if>
|
|
<if test="xydrwb.jc != null and xydrwb.jc != ''">
|
|
AND 简称 LIKE CONCAT('%', #{xydrwb.jc}, '%')
|
|
</if>
|
|
<if test="xydrwb.ksdd != null and xydrwb.ksdd != ''">
|
|
AND 考试地点 LIKE CONCAT('%', #{xydrwb.ksdd}, '%')
|
|
</if>
|
|
<if test="xydrwb.ksbh != null and xydrwb.ksbh != ''">
|
|
AND 考试编号 LIKE CONCAT('%', #{xydrwb.ksbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.xz != null">
|
|
AND 选择 = #{xydrwb.xz}
|
|
</if>
|
|
<if test="xydrwb.jysdh != null and xydrwb.jysdh != ''">
|
|
AND 教研室代号 LIKE CONCAT('%', #{xydrwb.jysdh}, '%')
|
|
</if>
|
|
<if test="xydrwb.jysjhjybh != null and xydrwb.jysjhjybh != ''">
|
|
AND 教研室计划教员编号 LIKE CONCAT('%', #{xydrwb.jysjhjybh}, '%')
|
|
</if>
|
|
<if test="xydrwb.jysjhbz != null and xydrwb.jysjhbz != ''">
|
|
AND 教研室计划备注 LIKE CONCAT('%', #{xydrwb.jysjhbz}, '%')
|
|
</if>
|
|
<if test="xydrwb.jhkcxh != null">
|
|
AND 计划课次序号 = #{xydrwb.jhkcxh}
|
|
</if>
|
|
<if test="xydrwb.xydxqbh != null and xydrwb.xydxqbh != ''">
|
|
AND 学员队学期编号 LIKE CONCAT('%', #{xydrwb.xydxqbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.bz != null and xydrwb.bz != ''">
|
|
AND 备注 LIKE CONCAT('%', #{xydrwb.bz}, '%')
|
|
</if>
|
|
<if test="xydrwb.xf != null">
|
|
AND 学分 = #{xydrwb.xf}
|
|
</if>
|
|
<if test="xydrwb.ksks != null">
|
|
AND 考试课时 = #{xydrwb.ksks}
|
|
</if>
|
|
<if test="xydrwb.bz2 != null">
|
|
AND 编组 = #{xydrwb.bz2}
|
|
</if>
|
|
<if test="xydrwb.cjfz != null and xydrwb.cjfz != ''">
|
|
AND 成绩分制 LIKE CONCAT('%', #{xydrwb.cjfz}, '%')
|
|
</if>
|
|
<if test="xydrwb.bjrxypjf != null">
|
|
AND 不计入学员平均分 = #{xydrwb.bjrxypjf}
|
|
</if>
|
|
<if test="xydrwb.llxs != null">
|
|
AND 理论学时 = #{xydrwb.llxs}
|
|
</if>
|
|
<if test="xydrwb.sjxs != null">
|
|
AND 实践学时 = #{xydrwb.sjxs}
|
|
</if>
|
|
<if test="xydrwb.ksksbxs != null">
|
|
AND 考试课时不显示 = #{xydrwb.ksksbxs}
|
|
</if>
|
|
<if test="xydrwb.pdxh != null">
|
|
AND 配档序号 = #{xydrwb.pdxh}
|
|
</if>
|
|
<if test="xydrwb.pdqsz != null">
|
|
AND 配档起始周 = #{xydrwb.pdqsz}
|
|
</if>
|
|
<if test="xydrwb.pdaz != null">
|
|
AND 配档按周 = #{xydrwb.pdaz}
|
|
</if>
|
|
<if test="xydrwb.pdzzksj != null">
|
|
AND 配档占正课时间 = #{xydrwb.pdzzksj}
|
|
</if>
|
|
<if test="xydrwb.pdbz != null">
|
|
AND 配档编组 = #{xydrwb.pdbz}
|
|
</if>
|
|
<if test="xydrwb.pdtbykxxbz != null">
|
|
AND 配当同班异课选修编组 = #{xydrwb.pdtbykxxbz}
|
|
</if>
|
|
<if test="xydrwb.pdzdyxsfbsj != null and xydrwb.pdzdyxsfbsj != ''">
|
|
AND 配档自定义学时分布数据 LIKE CONCAT('%', #{xydrwb.pdzdyxsfbsj}, '%')
|
|
</if>
|
|
<if test="xydrwb.pdqyzdyxs != null">
|
|
AND 配档启用自定义学时 = #{xydrwb.pdqyzdyxs}
|
|
</if>
|
|
</where>
|
|
ORDER BY 年度, 序号标识, 学员队编号
|
|
</select>
|
|
|
|
<!-- 分页查询(按计划课次序号排序) -->
|
|
<select id="selectPageListGroup" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队任务表
|
|
<where>
|
|
<if test="xydrwb.nd != null">
|
|
AND 年度 = #{xydrwb.nd}
|
|
</if>
|
|
<if test="xydrwb.xydbh != null and xydrwb.xydbh != ''">
|
|
AND 学员队编号 LIKE CONCAT('%', #{xydrwb.xydbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.kbh != null and xydrwb.kbh != ''">
|
|
AND 课编号 LIKE CONCAT('%', #{xydrwb.kbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.xqdc != null">
|
|
AND 学期第次 = #{xydrwb.xqdc}
|
|
</if>
|
|
<if test="xydrwb.jybh != null and xydrwb.jybh != ''">
|
|
AND 教员编号 LIKE CONCAT('%', #{xydrwb.jybh}, '%')
|
|
</if>
|
|
<if test="xydrwb.kcxh != null">
|
|
AND 课次序号 = #{xydrwb.kcxh}
|
|
</if>
|
|
<if test="xydrwb.jsbh != null and xydrwb.jsbh != ''">
|
|
AND 教室编号 LIKE CONCAT('%', #{xydrwb.jsbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.rs != null">
|
|
AND 人数 = #{xydrwb.rs}
|
|
</if>
|
|
<if test="xydrwb.zks != null">
|
|
AND 周课时 = #{xydrwb.zks}
|
|
</if>
|
|
<if test="xydrwb.xs != null">
|
|
AND 学时 = #{xydrwb.xs}
|
|
</if>
|
|
<if test="xydrwb.klx != null and xydrwb.klx != ''">
|
|
AND 课类型 LIKE CONCAT('%', #{xydrwb.klx}, '%')
|
|
</if>
|
|
<if test="xydrwb.jc != null and xydrwb.jc != ''">
|
|
AND 简称 LIKE CONCAT('%', #{xydrwb.jc}, '%')
|
|
</if>
|
|
<if test="xydrwb.ksdd != null and xydrwb.ksdd != ''">
|
|
AND 考试地点 LIKE CONCAT('%', #{xydrwb.ksdd}, '%')
|
|
</if>
|
|
<if test="xydrwb.ksbh != null and xydrwb.ksbh != ''">
|
|
AND 考试编号 LIKE CONCAT('%', #{xydrwb.ksbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.xz != null">
|
|
AND 选择 = #{xydrwb.xz}
|
|
</if>
|
|
<if test="xydrwb.jysdh != null and xydrwb.jysdh != ''">
|
|
AND 教研室代号 LIKE CONCAT('%', #{xydrwb.jysdh}, '%')
|
|
</if>
|
|
<if test="xydrwb.jysjhjybh != null and xydrwb.jysjhjybh != ''">
|
|
AND 教研室计划教员编号 LIKE CONCAT('%', #{xydrwb.jysjhjybh}, '%')
|
|
</if>
|
|
<if test="xydrwb.jysjhbz != null and xydrwb.jysjhbz != ''">
|
|
AND 教研室计划备注 LIKE CONCAT('%', #{xydrwb.jysjhbz}, '%')
|
|
</if>
|
|
<if test="xydrwb.jhkcxh != null">
|
|
AND 计划课次序号 = #{xydrwb.jhkcxh}
|
|
</if>
|
|
<if test="xydrwb.xydxqbh != null and xydrwb.xydxqbh != ''">
|
|
AND 学员队学期编号 LIKE CONCAT('%', #{xydrwb.xydxqbh}, '%')
|
|
</if>
|
|
<if test="xydrwb.bz != null and xydrwb.bz != ''">
|
|
AND 备注 LIKE CONCAT('%', #{xydrwb.bz}, '%')
|
|
</if>
|
|
<if test="xydrwb.xf != null">
|
|
AND 学分 = #{xydrwb.xf}
|
|
</if>
|
|
<if test="xydrwb.ksks != null">
|
|
AND 考试课时 = #{xydrwb.ksks}
|
|
</if>
|
|
<if test="xydrwb.bz2 != null">
|
|
AND 编组 = #{xydrwb.bz2}
|
|
</if>
|
|
<if test="xydrwb.cjfz != null and xydrwb.cjfz != ''">
|
|
AND 成绩分制 LIKE CONCAT('%', #{xydrwb.cjfz}, '%')
|
|
</if>
|
|
<if test="xydrwb.bjrxypjf != null">
|
|
AND 不计入学员平均分 = #{xydrwb.bjrxypjf}
|
|
</if>
|
|
<if test="xydrwb.llxs != null">
|
|
AND 理论学时 = #{xydrwb.llxs}
|
|
</if>
|
|
<if test="xydrwb.sjxs != null">
|
|
AND 实践学时 = #{xydrwb.sjxs}
|
|
</if>
|
|
<if test="xydrwb.ksksbxs != null">
|
|
AND 考试课时不显示 = #{xydrwb.ksksbxs}
|
|
</if>
|
|
<if test="xydrwb.pdxh != null">
|
|
AND 配档序号 = #{xydrwb.pdxh}
|
|
</if>
|
|
<if test="xydrwb.pdqsz != null">
|
|
AND 配档起始周 = #{xydrwb.pdqsz}
|
|
</if>
|
|
<if test="xydrwb.pdaz != null">
|
|
AND 配档按周 = #{xydrwb.pdaz}
|
|
</if>
|
|
<if test="xydrwb.pdzzksj != null">
|
|
AND 配档占正课时间 = #{xydrwb.pdzzksj}
|
|
</if>
|
|
<if test="xydrwb.pdbz != null">
|
|
AND 配档编组 = #{xydrwb.pdbz}
|
|
</if>
|
|
<if test="xydrwb.pdtbykxxbz != null">
|
|
AND 配当同班异课选修编组 = #{xydrwb.pdtbykxxbz}
|
|
</if>
|
|
<if test="xydrwb.pdzdyxsfbsj != null and xydrwb.pdzdyxsfbsj != ''">
|
|
AND 配档自定义学时分布数据 LIKE CONCAT('%', #{xydrwb.pdzdyxsfbsj}, '%')
|
|
</if>
|
|
<if test="xydrwb.pdqyzdyxs != null">
|
|
AND 配档启用自定义学时 = #{xydrwb.pdqyzdyxs}
|
|
</if>
|
|
</where>
|
|
ORDER BY 年度, 课次序号, 学员队编号
|
|
</select>
|
|
|
|
<!-- 查询指定年度的最大课次序号 -->
|
|
<select id="selectMaxKcxhByNd" resultType="java.lang.Integer">
|
|
SELECT MAX(课次序号) FROM 学员队任务表 WHERE 年度 = #{nd} AND DEL_FLAG = 0
|
|
</select>
|
|
|
|
</mapper> |