forked from liweijie/education
93 lines
4.6 KiB
XML
93 lines
4.6 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.ClassSemesterCalendarMapper">
|
|
|
|
<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="selectAllValid" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队任务表
|
|
<where>
|
|
<if test="xydrwb.delFlag != null">
|
|
AND DEL_FLAG = #{xydrwb.delFlag}
|
|
</if>
|
|
<if test="xydrwb.xydxqbh != null and xydrwb.xydxqbh != ''">
|
|
AND 学员队学期编号 = #{xydrwb.xydxqbh}
|
|
</if>
|
|
</where>
|
|
ORDER BY 编号
|
|
</select>
|
|
|
|
<delete id="deleteByBcxqBh">
|
|
DELETE FROM 学员队任务表
|
|
WHERE 学员队学期编号 = #{bh}
|
|
</delete>
|
|
|
|
<!-- 根据学员队学期编号查询 -->
|
|
<select id="selectByBcxqbhAndDateRange" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队任务表
|
|
WHERE 学员队学期编号 = #{xydxqbh}
|
|
AND DEL_FLAG = 0
|
|
ORDER BY 编号
|
|
</select>
|
|
|
|
<!-- 根据学员队学期编号删除记录 -->
|
|
<delete id="deleteOutsideDateRange">
|
|
DELETE FROM 学员队任务表
|
|
WHERE 学员队学期编号 = #{xydxqbh}
|
|
</delete>
|
|
</mapper> |