feat: 提交课表冲突检查相关功能模块
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?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.BuildMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JXLB">
|
||||
<result column="教学楼代号" property="jxldh" />
|
||||
<result column="教学楼名称" property="jxlmc" />
|
||||
<result column="地点" property="dd" />
|
||||
<result column="备注" property="bz" />
|
||||
<result column="序号" property="xh" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
<result column="ID" property="id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
教学楼代号, 教学楼名称, 地点, 备注, 序号,ID, DEL_FLAG
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教学楼表
|
||||
<where>
|
||||
<if test="jxlb.jxldh != null and jxlb.jxldh != ''">
|
||||
AND 教学楼代号 LIKE CONCAT('%', #{jxlb.jxldh}, '%')
|
||||
</if>
|
||||
<if test="jxlb.jxlmc != null and jxlb.jxlmc != ''">
|
||||
AND 教学楼名称 LIKE CONCAT('%', #{jxlb.jxlmc}, '%')
|
||||
</if>
|
||||
<if test="jxlb.dd != null and jxlb.dd != ''">
|
||||
AND 地点 LIKE CONCAT('%', #{jxlb.dd}, '%')
|
||||
</if>
|
||||
<if test="jxlb.id != null and jxlb.id != ''">
|
||||
AND ID = #{jxlb.id}
|
||||
</if>
|
||||
<if test="jxlb.delFlag != null">
|
||||
AND DEL_FLAG = #{jxlb.delFlag}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 序号
|
||||
</select>
|
||||
|
||||
<select id="selectMaxXh" resultType="java.lang.String">
|
||||
SELECT MAX(序号) FROM 教学楼表 WHERE DEL_FLAG = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user