65 lines
3.0 KiB
XML
65 lines
3.0 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.ClassSemesterMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.XYDNDXQJBXXB">
|
|
<id column="编号" property="bh" />
|
|
<result column="年度" property="nd" />
|
|
<result column="学员队编号" property="xydbh" />
|
|
<result column="开学日期" property="kxrq" />
|
|
<result column="结束日期" property="jsrq" />
|
|
<result column="学期第次" property="xqdc" />
|
|
<result column="专用教室编号" property="zyjsbh" />
|
|
<result column="教学任务编号" property="jxrwbh" />
|
|
<result column="变动时间" property="bdsj" />
|
|
<result column="备注" property="bz" />
|
|
<result column="序号标识" property="xhbs" />
|
|
<result column="预设编班号" property="ysbbh" />
|
|
<result column="节次类别" property="jclb" />
|
|
<result column="系统模式" property="xtms" />
|
|
<result column="开放教员排课" property="kfjypk" />
|
|
<result column="JSONZD" property="jsonzd" />
|
|
<result column="分析报告生成时间" property="fxbgscsj" />
|
|
<result column="分析报告文档1编号" property="fxbgwd1bh" />
|
|
<result column="分析报告文档2编号" property="fxbgwd2bh" />
|
|
<result column="分析报告文档3编号" property="fxbgwd3bh" />
|
|
<result column="DEL_FLAG" property="delFlag" />
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
编号, 年度, 学员队编号, 开学日期, 结束日期, 学期第次, 专用教室编号, 教学任务编号,
|
|
变动时间, 备注, 序号标识, 预设编班号, 节次类别, 系统模式, 开放教员排课, JSONZD,
|
|
分析报告生成时间, 分析报告文档1编号, 分析报告文档2编号, 分析报告文档3编号, DEL_FLAG
|
|
</sql>
|
|
|
|
<select id="selectPageList" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队年度学期基本信息表
|
|
<where>
|
|
<if test="xydndxqjbxxb.delFlag != null">
|
|
AND DEL_FLAG = #{xydndxqjbxxb.delFlag}
|
|
</if>
|
|
<if test="xydndxqjbxxb.xydbh != null and xydndxqjbxxb.xydbh != ''">
|
|
AND 学员队编号 LIKE CONCAT('%', #{xydndxqjbxxb.xydbh}, '%')
|
|
</if>
|
|
</where>
|
|
ORDER BY 编号
|
|
</select>
|
|
|
|
<select id="selectAllValid" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队年度学期基本信息表
|
|
WHERE DEL_FLAG = '0'
|
|
ORDER BY 编号
|
|
</select>
|
|
|
|
<select id="selectByBcAndNdAndXqdc" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List" />
|
|
FROM 学员队年度学期基本信息表
|
|
WHERE 学员队编号 = #{xydbh}
|
|
AND 年度 = #{nd}
|
|
AND 学期第次 = #{xqdc}
|
|
AND DEL_FLAG = '0'
|
|
</select>
|
|
|
|
</mapper> |