|
@@ -8,6 +8,7 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
|
<result column="create_uid" jdbcType="INTEGER" property="createUid" />
|
|
|
+ <result column="type" jdbcType="CHAR" property="type" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -68,7 +69,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, class_id, student_id, create_time, modify_time, create_uid
|
|
|
+ id, class_id, student_id, create_time, modify_time, create_uid, type
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCltRelationExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -105,9 +106,11 @@
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
|
insert into eas_edu_clt_relation (class_id, student_id, create_time,
|
|
|
- modify_time, create_uid)
|
|
|
+ modify_time, create_uid, type
|
|
|
+ )
|
|
|
values (#{classId,jdbcType=BIGINT}, #{studentId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER})
|
|
|
+ #{modifyTime,jdbcType=TIMESTAMP}, #{createUid,jdbcType=INTEGER}, #{type,jdbcType=CHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasEduCltRelation">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
@@ -130,6 +133,9 @@
|
|
|
<if test="createUid != null">
|
|
|
create_uid,
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="classId != null">
|
|
@@ -147,6 +153,9 @@
|
|
|
<if test="createUid != null">
|
|
|
#{createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.koobietech.eas.mbg.model.EasEduCltRelationExample" resultType="java.lang.Long">
|
|
@@ -176,6 +185,9 @@
|
|
|
<if test="record.createUid != null">
|
|
|
create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ type = #{record.type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -188,7 +200,8 @@
|
|
|
student_id = #{record.studentId,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
|
- create_uid = #{record.createUid,jdbcType=INTEGER}
|
|
|
+ create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
+ type = #{record.type,jdbcType=CHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -211,6 +224,9 @@
|
|
|
<if test="createUid != null">
|
|
|
create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ type = #{type,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
@@ -220,7 +236,8 @@
|
|
|
student_id = #{studentId,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
- create_uid = #{createUid,jdbcType=INTEGER}
|
|
|
+ create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
+ type = #{type,jdbcType=CHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper>
|