|
@@ -8,13 +8,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
<result property="teacherId" column="teacher_id" />
|
|
<result property="teacherId" column="teacher_id" />
|
|
|
<result property="classId" column="class_id" />
|
|
<result property="classId" column="class_id" />
|
|
|
|
|
+ <result property="schoolId" column="school_id" />
|
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
<result property="outDate" column="out_date" />
|
|
<result property="outDate" column="out_date" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectDzTeacherClassVo">
|
|
<sql id="selectDzTeacherClassVo">
|
|
|
- select id, teacher_id, class_id, status, remark, out_date from dz_teacher_class
|
|
|
|
|
|
|
+ select id, teacher_id, class_id, school_id, status, remark, out_date from dz_teacher_class
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectDzTeacherClassList" parameterType="DzTeacherClass" resultMap="DzTeacherClassResult">
|
|
<select id="selectDzTeacherClassList" parameterType="DzTeacherClass" resultMap="DzTeacherClassResult">
|
|
@@ -22,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
<where>
|
|
|
<if test="teacherId != null "> and teacher_id = #{teacherId}</if>
|
|
<if test="teacherId != null "> and teacher_id = #{teacherId}</if>
|
|
|
<if test="classId != null "> and class_id = #{classId}</if>
|
|
<if test="classId != null "> and class_id = #{classId}</if>
|
|
|
|
|
+ <if test="schoolId != null "> and school_id = #{schoolId}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
<if test="outDate != null "> and out_date = #{outDate}</if>
|
|
<if test="outDate != null "> and out_date = #{outDate}</if>
|
|
|
</where>
|
|
</where>
|
|
@@ -45,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="teacherId != null">teacher_id,</if>
|
|
<if test="teacherId != null">teacher_id,</if>
|
|
|
<if test="classId != null">class_id,</if>
|
|
<if test="classId != null">class_id,</if>
|
|
|
|
|
+ <if test="schoolId != null">school_id,</if>
|
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="outDate != null">out_date,</if>
|
|
<if test="outDate != null">out_date,</if>
|
|
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="teacherId != null">#{teacherId},</if>
|
|
<if test="teacherId != null">#{teacherId},</if>
|
|
|
<if test="classId != null">#{classId},</if>
|
|
<if test="classId != null">#{classId},</if>
|
|
|
|
|
+ <if test="schoolId != null">#{schoolId},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="outDate != null">#{outDate},</if>
|
|
<if test="outDate != null">#{outDate},</if>
|
|
@@ -63,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
INSERT INTO dz_teacher_class (
|
|
INSERT INTO dz_teacher_class (
|
|
|
teacher_id,
|
|
teacher_id,
|
|
|
class_id,
|
|
class_id,
|
|
|
|
|
+ school_id,
|
|
|
status,
|
|
status,
|
|
|
create_time,
|
|
create_time,
|
|
|
create_by
|
|
create_by
|
|
@@ -71,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
(
|
|
(
|
|
|
#{item.teacherId},
|
|
#{item.teacherId},
|
|
|
#{item.classId},
|
|
#{item.classId},
|
|
|
|
|
+ #{item.schoolId},
|
|
|
#{item.status},
|
|
#{item.status},
|
|
|
#{item.createTime},
|
|
#{item.createTime},
|
|
|
#{item.createBy}
|
|
#{item.createBy}
|
|
@@ -83,6 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="teacherId != null">teacher_id = #{teacherId},</if>
|
|
<if test="teacherId != null">teacher_id = #{teacherId},</if>
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
|
|
|
+ <if test="schoolId != null">school_id = #{schoolId},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="outDate != null">out_date = #{outDate},</if>
|
|
<if test="outDate != null">out_date = #{outDate},</if>
|