|
|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="teacherId" column="teacher_id" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
+ <result property="agentId" column="agent_id" />
|
|
|
<result property="schoolId" column="school_id" />
|
|
|
<result property="campusId" column="campus_id" />
|
|
|
<result property="name" column="name" />
|
|
|
@@ -16,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDzTeacherVo">
|
|
|
- select t1.teacher_id, t1.user_id, t1.school_id, t1.campus_id, t1.dept_id, t1.name,
|
|
|
+ select t1.teacher_id, t1.user_id, t1.school_id, t1.campus_id, t1.dept_id, t1.agent_id, t1.name,
|
|
|
t2.dept_name ,t3.name school_name
|
|
|
from dz_teacher t1
|
|
|
left join sys_dept t2 on t1.dept_id = t2.dept_id
|
|
|
@@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="userId != null "> and t1.user_id = #{userId}</if>
|
|
|
<if test="deptId != null "> and t1.dept_id = #{deptId}</if>
|
|
|
+ <if test="agentId != null "> and t1.agent_id = #{agentId}</if>
|
|
|
<if test="schoolId != null "> and t1.school_id = #{schoolId}</if>
|
|
|
<if test="campusId != null "> and t1.campus_id = #{campusId}</if>
|
|
|
<if test="name != null and name != ''"> and t1.name like concat('%', #{name}, '%')</if>
|
|
|
@@ -45,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
+ <if test="agentId != null">agent_id,</if>
|
|
|
<if test="schoolId != null">school_id,</if>
|
|
|
<if test="campusId != null">campus_id,</if>
|
|
|
<if test="name != null">name,</if>
|
|
|
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="agentId != null">#{agentId},</if>
|
|
|
<if test="schoolId != null">#{schoolId},</if>
|
|
|
<if test="campusId != null">#{campusId},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
@@ -63,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="agentId != null">agent_id = #{agentId},</if>
|
|
|
<if test="schoolId != null">school_id = #{schoolId},</if>
|
|
|
<if test="campusId != null">campus_id = #{campusId},</if>
|
|
|
<if test="name != null">name = #{name},</if>
|