|
@@ -13,7 +13,9 @@
|
|
|
<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="comment" jdbcType="VARCHAR" property="comment" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.koobietech.eas.mbg.model.EasArcTlsScores">
|
|
|
+ <result column="comment" jdbcType="LONGVARCHAR" property="comment" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -75,8 +77,27 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, student_number, category_id, subject_id, test_date, score, pass_rate, excel_rate,
|
|
|
- create_time, modify_time, create_uid, comment
|
|
|
+ create_time, modify_time, create_uid
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ comment
|
|
|
</sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScoresExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from eas_arc_tls_scores
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="selectByExample" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScoresExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|
|
@@ -91,9 +112,11 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
from eas_arc_tls_scores
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
@@ -118,7 +141,7 @@
|
|
|
values (#{studentNumber,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER}, #{subjectId,jdbcType=INTEGER},
|
|
|
#{testDate,jdbcType=TIMESTAMP}, #{score,jdbcType=DECIMAL}, #{passRate,jdbcType=DECIMAL},
|
|
|
#{excelRate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
- #{createUid,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR})
|
|
|
+ #{createUid,jdbcType=INTEGER}, #{comment,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScores">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
@@ -192,7 +215,7 @@
|
|
|
#{createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="comment != null">
|
|
|
- #{comment,jdbcType=VARCHAR},
|
|
|
+ #{comment,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -239,14 +262,14 @@
|
|
|
create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="record.comment != null">
|
|
|
- comment = #{record.comment,jdbcType=VARCHAR},
|
|
|
+ comment = #{record.comment,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update eas_arc_tls_scores
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
student_number = #{record.studentNumber,jdbcType=VARCHAR},
|
|
@@ -259,7 +282,24 @@
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
|
create_uid = #{record.createUid,jdbcType=INTEGER},
|
|
|
- comment = #{record.comment,jdbcType=VARCHAR}
|
|
|
+ comment = #{record.comment,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update eas_arc_tls_scores
|
|
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
+ student_number = #{record.studentNumber,jdbcType=VARCHAR},
|
|
|
+ category_id = #{record.categoryId,jdbcType=INTEGER},
|
|
|
+ subject_id = #{record.subjectId,jdbcType=INTEGER},
|
|
|
+ test_date = #{record.testDate,jdbcType=TIMESTAMP},
|
|
|
+ score = #{record.score,jdbcType=DECIMAL},
|
|
|
+ pass_rate = #{record.passRate,jdbcType=DECIMAL},
|
|
|
+ excel_rate = #{record.excelRate,jdbcType=DECIMAL},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ create_uid = #{record.createUid,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -298,12 +338,12 @@
|
|
|
create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="comment != null">
|
|
|
- comment = #{comment,jdbcType=VARCHAR},
|
|
|
+ comment = #{comment,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScores">
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScores">
|
|
|
update eas_arc_tls_scores
|
|
|
set student_number = #{studentNumber,jdbcType=VARCHAR},
|
|
|
category_id = #{categoryId,jdbcType=INTEGER},
|
|
@@ -315,7 +355,21 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
create_uid = #{createUid,jdbcType=INTEGER},
|
|
|
- comment = #{comment,jdbcType=VARCHAR}
|
|
|
+ comment = #{comment,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.koobietech.eas.mbg.model.EasArcTlsScores">
|
|
|
+ update eas_arc_tls_scores
|
|
|
+ set student_number = #{studentNumber,jdbcType=VARCHAR},
|
|
|
+ category_id = #{categoryId,jdbcType=INTEGER},
|
|
|
+ subject_id = #{subjectId,jdbcType=INTEGER},
|
|
|
+ test_date = #{testDate,jdbcType=TIMESTAMP},
|
|
|
+ score = #{score,jdbcType=DECIMAL},
|
|
|
+ pass_rate = #{passRate,jdbcType=DECIMAL},
|
|
|
+ excel_rate = #{excelRate,jdbcType=DECIMAL},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ create_uid = #{createUid,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper>
|