forked from liweijie/education
feat: 提交课表冲突检查相关功能模块
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?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.TeachingTaskMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JXRW">
|
||||
<id column="编号" property="bh" />
|
||||
<result column="任务名称" property="rwmc" />
|
||||
<result column="年度" property="nd" />
|
||||
<result column="状态" property="zt" />
|
||||
<result column="发布时间" property="fbsj" />
|
||||
<result column="创建时间" property="cjsj" />
|
||||
<result column="结束时间" property="jssj" />
|
||||
<result column="教材需求生成时间" property="jcxqscsj" />
|
||||
<result column="DEL_FLAG" property="delFlag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
编号, 任务名称, 年度, 状态, 发布时间, 创建时间, 结束时间, 教材需求生成时间, DEL_FLAG
|
||||
</sql>
|
||||
|
||||
<select id="selectPageList" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM 教学任务
|
||||
<where>
|
||||
<if test="jxrw.delFlag != null">
|
||||
AND DEL_FLAG = #{jxrw.delFlag}
|
||||
</if>
|
||||
<if test="jxrw.rwmc != null and jxrw.rwmc != ''">
|
||||
AND 任务名称 LIKE CONCAT('%', #{jxrw.rwmc}, '%')
|
||||
</if>
|
||||
<if test="jxrw.nd != null">
|
||||
AND 年度 = #{jxrw.nd}
|
||||
</if>
|
||||
<if test="jxrw.zt != null and jxrw.zt != ''">
|
||||
AND 状态 = #{jxrw.zt}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY 编号
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user