feat: 提交课表冲突检查相关功能模块
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?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.KSTJBMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.KSTJB">
|
||||
<result column="年份" property="nf" />
|
||||
<result column="教员编号" property="jybh" />
|
||||
<result column="上半年" property="sbn" />
|
||||
<result column="下半年" property="xbn" />
|
||||
<result column="职称" property="zc" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="HourStatisticsResultMap" type="com.roomroot.jwgl.vo.ks.HourStatisticsVO">
|
||||
<result column="jysdh" property="jysdh" />
|
||||
<result column="jysmc" property="jysmc" />
|
||||
<result column="jybh" property="jybh" />
|
||||
<result column="jyxm" property="jyxm" />
|
||||
<result column="zc" property="zc" />
|
||||
<result column="nf" property="nf" />
|
||||
<result column="sbn" property="sbn" />
|
||||
<result column="xbn" property="xbn" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="HourStatisticsFromWhere">
|
||||
FROM "教研室表" jys
|
||||
INNER JOIN "教员表" j ON jys."教研室代号" = j."教研室代号"
|
||||
INNER JOIN "课时统计表" c ON j."教员编号" = c."教员编号"
|
||||
<where>
|
||||
<if test="cond != null and cond.nd != null">
|
||||
AND c."年份" = #{cond.nd}
|
||||
</if>
|
||||
<if test="cond != null and cond.jyxm != null and cond.jyxm != ''">
|
||||
AND j."教员姓名" LIKE CONCAT('%', #{cond.jyxm}, '%')
|
||||
</if>
|
||||
<if test="cond != null and cond.jybh != null and cond.jybh != ''">
|
||||
AND j."教员编号" = #{cond.jybh}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<sql id="HourStatisticsColumns">
|
||||
jys."教研室代号" AS jysdh,
|
||||
jys."教研室名称" AS jysmc,
|
||||
j."教员编号" AS jybh,
|
||||
j."教员姓名" AS jyxm,
|
||||
COALESCE(c."职称", j."职称") AS zc,
|
||||
c."年份" AS nf,
|
||||
COALESCE(c."上半年", 0) AS sbn,
|
||||
COALESCE(c."下半年", 0) AS xbn
|
||||
</sql>
|
||||
|
||||
<select id="selectHourStatistics" resultMap="HourStatisticsResultMap">
|
||||
SELECT
|
||||
<include refid="HourStatisticsColumns"/>
|
||||
<include refid="HourStatisticsFromWhere"/>
|
||||
ORDER BY jys."教研室代号", j."教员编号"
|
||||
</select>
|
||||
|
||||
<select id="selectHourStatisticsList" resultMap="HourStatisticsResultMap">
|
||||
SELECT
|
||||
<include refid="HourStatisticsColumns"/>
|
||||
<include refid="HourStatisticsFromWhere"/>
|
||||
ORDER BY jys."教研室代号", j."教员编号"
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user