48 lines
2.7 KiB
XML
48 lines
2.7 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.ruoyi.exam.mapper.ExamPracticeMapper">
|
||
|
|
|
||
|
|
<resultMap type="ExamPractice" id="ExamPracticeResult">
|
||
|
|
<result property="id" column="id" />
|
||
|
|
<result property="deptId" column="dept_id" />
|
||
|
|
<result property="name" column="name" />
|
||
|
|
<result property="enableControlTime" column="enable_control_time" />
|
||
|
|
<result property="startTime" column="start_time" />
|
||
|
|
<result property="endTime" column="end_time" />
|
||
|
|
<result property="practiceUserLimit" column="practice_user_limit" />
|
||
|
|
<result property="createBy" column="create_by" />
|
||
|
|
<result property="createDate" column="create_date" />
|
||
|
|
<result property="updateBy" column="update_by" />
|
||
|
|
<result property="updateDate" column="update_date" />
|
||
|
|
<result property="remarks" column="remarks" />
|
||
|
|
<result property="delFlag" column="del_flag" />
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<sql id="selectExamPracticeVo">
|
||
|
|
id, dept_id, name, enable_control_time, start_time, end_time, practice_user_limit, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||
|
|
|
||
|
|
<select id="selectExamPracticeList" parameterType="ExamPractice" resultMap="ExamPracticeResult">
|
||
|
|
select
|
||
|
|
<include refid="selectExamPracticeVo"/>
|
||
|
|
from exam_practice
|
||
|
|
<where>
|
||
|
|
<if test="id != null "> and id = #{id}</if>
|
||
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||
|
|
<if test="name != null and name != '' "> and name = #{name}</if>
|
||
|
|
<if test="enableControlTime != null and enableControlTime != '' "> and enable_control_time = #{enableControlTime}</if>
|
||
|
|
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||
|
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||
|
|
<if test="practiceUserLimit != null and practiceUserLimit != '' "> and practice_user_limit = #{practiceUserLimit}</if>
|
||
|
|
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||
|
|
<if test="createDate != null "> and create_date = #{createDate}</if>
|
||
|
|
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||
|
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
||
|
|
<if test="remarks != null and remarks != '' "> and remarks = #{remarks}</if>
|
||
|
|
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|