Files
education/backend/roomroot-jwgl/target/classes/com/roomroot/jwgl/mapper/StudentTeamOutputScheduleMapper.xml
T
2026-08-21 14:39:03 +08:00

89 lines
4.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.StudentTeamOutputScheduleMapper">
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.XYDSCKCB">
<id column="编号" property="bh" />
<result column="年度" property="nd" />
<result column="学员队编号" property="xydbh" />
<result column="课程表" property="kcb" />
<result column="更新时间" property="gxsj" />
<result column="备注" property="bz" />
<result column="页号" property="yh" />
<result column="有课表" property="ykb" />
<result column="课程表模版编号" property="kcbmbbh" />
<result column="附加备注1" property="fjbz1" />
<result column="附加备注2" property="fjbz2" />
<result column="运行课程表" property="yxkcb" />
<result column="运行备注" property="yxbz" />
<result column="运行课表更新时间" property="yxkbgxsj" />
<result column="有运行课表" property="yyxkb" />
<result column="DEL_FLAG" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
编号, 年度, 学员队编号, 课程表, 更新时间, 备注, 页号, 有课表, 课程表模版编号,
附加备注1, 附加备注2, 运行课程表, 运行备注, 运行课表更新时间, 有运行课表, DEL_FLAG
</sql>
<!-- 分页查询 -->
<select id="selectPageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM 学员队输出课程表
<where>
<if test="xydsckcb.nd != null">
AND 年度 = #{xydsckcb.nd}
</if>
<if test="xydsckcb.xydbh != null and xydsckcb.xydbh != ''">
AND 学员队编号 LIKE CONCAT('%', #{xydsckcb.xydbh}, '%')
</if>
<if test="xydsckcb.kcb != null and xydsckcb.kcb != ''">
AND 课程表 LIKE CONCAT('%', #{xydsckcb.kcb}, '%')
</if>
<if test="xydsckcb.bz != null and xydsckcb.bz != ''">
AND 备注 LIKE CONCAT('%', #{xydsckcb.bz}, '%')
</if>
<if test="xydsckcb.yh != null">
AND 页号 = #{xydsckcb.yh}
</if>
<if test="xydsckcb.ykb != null">
AND 有课表 = #{xydsckcb.ykb}
</if>
<if test="xydsckcb.kcbmbbh != null and xydsckcb.kcbmbbh != ''">
AND 课程表模版编号 LIKE CONCAT('%', #{xydsckcb.kcbmbbh}, '%')
</if>
<if test="xydsckcb.fjbz1 != null and xydsckcb.fjbz1 != ''">
AND 附加备注1 LIKE CONCAT('%', #{xydsckcb.fjbz1}, '%')
</if>
<if test="xydsckcb.fjbz2 != null and xydsckcb.fjbz2 != ''">
AND 附加备注2 LIKE CONCAT('%', #{xydsckcb.fjbz2}, '%')
</if>
<if test="xydsckcb.yxkcb != null and xydsckcb.yxkcb != ''">
AND 运行课程表 LIKE CONCAT('%', #{xydsckcb.yxkcb}, '%')
</if>
<if test="xydsckcb.yxbz != null and xydsckcb.yxbz != ''">
AND 运行备注 LIKE CONCAT('%', #{xydsckcb.yxbz}, '%')
</if>
<if test="xydsckcb.yyxkb != null">
AND 有运行课表 = #{xydsckcb.yyxkb}
</if>
</where>
ORDER BY 年度, 学员队编号
</select>
<!-- 根据编号查询 -->
<select id="selectByBh" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM 学员队输出课程表
WHERE 编号 = #{bh}
</select>
<!-- 根据年度和学员队编号查询 -->
<select id="selectByNdAndXydbh" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM 学员队输出课程表
WHERE 年度 = #{nd}
AND 学员队编号 = #{xydbh}
</select>
</mapper>