feat: 提交课表冲突检查相关功能模块
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
<?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.JYBMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JYB">
|
||||
<result column="教员编号" property="jybh" />
|
||||
<result column="教员姓名" property="jyxm" />
|
||||
<result column="教研室代号" property="jysdh" />
|
||||
<result column="备注" property="bz" />
|
||||
<result column="职称" property="zc" />
|
||||
<result column="离职状态" property="lzzt" />
|
||||
<result column="序号" property="xh" />
|
||||
<result column="专业技术职务等级" property="zyjszwdj" />
|
||||
<result column="虚实类型" property="xslx" />
|
||||
<result column="教员类别" property="jylb" />
|
||||
<result column="卡号" property="kh" />
|
||||
<result column="拼音" property="py" />
|
||||
<result column="在职类别" property="zzlb" />
|
||||
<result column="额外允许开班数" property="ewyxkbs" />
|
||||
<result column="手机号" property="sjh" />
|
||||
<result column="导师类别" property="dslb" />
|
||||
<result column="学缘" property="xy" />
|
||||
<result column="身份证号" property="sfzh" />
|
||||
<result column="性别" property="xb" />
|
||||
<result column="外训教员" property="wxjy" />
|
||||
<result column="外训译员" property="wxyy" />
|
||||
<result column="政治类教员" property="zzljy" />
|
||||
<result column="序号标识" property="xhbs" />
|
||||
<result column="JSONZD" property="jsonzd" />
|
||||
<result column="专业技术职务等级时间" property="zyjszwdjsj" />
|
||||
<result column="职称时间" property="zcsj" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
教员编号, 教员姓名, 教研室代号, 备注, 职称, 离职状态, 序号, 专业技术职务等级,
|
||||
虚实类型, 教员类别, 卡号, 拼音, 在职类别, 额外允许开班数, 手机号, 导师类别,
|
||||
学缘, 身份证号, 性别, 外训教员, 外训译员, 政治类教员, 序号标识, JSONZD,
|
||||
专业技术职务等级时间, 职称时间
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询教员列表 -->
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM "教员表"
|
||||
WHERE 离职状态=0
|
||||
<if test="jyb.jyxm != null and jyb.jyxm != ''">
|
||||
AND 教员姓名 LIKE CONCAT('%', #{jyb.jyxm}, '%')
|
||||
</if>
|
||||
<if test="jyb.jysdh != null and jyb.jysdh != ''">
|
||||
AND 教研室代号 = #{jyb.jysdh}
|
||||
</if>
|
||||
<if test="jyb.zc != null and jyb.zc != ''">
|
||||
AND 职称 LIKE CONCAT('%', #{jyb.zc}, '%')
|
||||
</if>
|
||||
<if test="jyb.jylb != null and jyb.jylb != ''">
|
||||
AND 教员类别 = #{jyb.jylb}
|
||||
</if>
|
||||
ORDER BY 序号
|
||||
</select>
|
||||
<!-- 教员列表双表联查分页(教员表 LEFT JOIN 教员属性 LEFT JOIN 教研室表) -->
|
||||
<select id="selectTeacherPageList" resultType="com.roomroot.jwgl.vo.faculty.TeacherListVO">
|
||||
SELECT
|
||||
t."序号" AS xh,
|
||||
t."教员编号" AS jybh,
|
||||
j."教研室名称" AS jysmc,
|
||||
t."教员姓名" AS jyxm,
|
||||
t."性别" AS xb,
|
||||
s."出生时间" AS cssj,
|
||||
t."职称" AS zc,
|
||||
s."学历" AS xl,
|
||||
s."学位" AS xw,
|
||||
s."入伍工作时间" AS rwgzsj,
|
||||
t."手机号" AS sjh,
|
||||
t."虚实类型" AS xslx
|
||||
FROM "教员表" t
|
||||
LEFT JOIN "教员属性" s ON s."教员编号" = t."教员编号"
|
||||
LEFT JOIN "教研室表" j ON j."教研室代号" = t."教研室代号"
|
||||
WHERE t."离职状态" = 0
|
||||
<if test="jyb.jyxm != null and jyb.jyxm != ''">
|
||||
AND t."教员姓名" LIKE CONCAT('%', #{jyb.jyxm}, '%')
|
||||
</if>
|
||||
<if test="jyb.jysdh != null and jyb.jysdh != ''">
|
||||
AND t."教研室代号" = #{jyb.jysdh}
|
||||
</if>
|
||||
<if test="jyb.zc != null and jyb.zc != ''">
|
||||
AND t."职称" LIKE CONCAT('%', #{jyb.zc}, '%')
|
||||
</if>
|
||||
<if test="jyb.jylb != null and jyb.jylb != ''">
|
||||
AND t."教员类别" = #{jyb.jylb}
|
||||
</if>
|
||||
ORDER BY t."序号"
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user