|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
-->
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="term_id" jdbcType="INTEGER" property="termId" />
|
|
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
|
|
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
|
|
|
|
<result column="path" jdbcType="VARCHAR" property="path" />
|
|
|
|
|
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
|
|
|
@ -84,7 +85,7 @@
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
-->
|
|
|
|
|
id, term_id, file_name, `path`, file_size, create_time
|
|
|
|
|
id, term_id, `type`, file_name, `path`, file_size, create_time
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.MntnUploadsExample" resultMap="BaseResultMap">
|
|
|
|
|
<!--
|
|
|
|
@ -140,10 +141,12 @@
|
|
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
|
</selectKey>
|
|
|
|
|
insert into mntn_uploads (term_id, file_name, `path`,
|
|
|
|
|
file_size, create_time)
|
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR},
|
|
|
|
|
#{fileSize,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
|
|
insert into mntn_uploads (term_id, `type`, file_name,
|
|
|
|
|
`path`, file_size, create_time
|
|
|
|
|
)
|
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR},
|
|
|
|
|
#{path,jdbcType=VARCHAR}, #{fileSize,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.MntnUploads">
|
|
|
|
|
<!--
|
|
|
|
@ -158,6 +161,9 @@
|
|
|
|
|
<if test="termId != null">
|
|
|
|
|
term_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="type != null">
|
|
|
|
|
`type`,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fileName != null">
|
|
|
|
|
file_name,
|
|
|
|
|
</if>
|
|
|
|
@ -175,6 +181,9 @@
|
|
|
|
|
<if test="termId != null">
|
|
|
|
|
#{termId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="type != null">
|
|
|
|
|
#{type,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fileName != null">
|
|
|
|
|
#{fileName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -212,6 +221,9 @@
|
|
|
|
|
<if test="row.termId != null">
|
|
|
|
|
term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="row.type != null">
|
|
|
|
|
`type` = #{row.type,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="row.fileName != null">
|
|
|
|
|
file_name = #{row.fileName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -237,6 +249,7 @@
|
|
|
|
|
update mntn_uploads
|
|
|
|
|
set id = #{row.id,jdbcType=INTEGER},
|
|
|
|
|
term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
|
`type` = #{row.type,jdbcType=INTEGER},
|
|
|
|
|
file_name = #{row.fileName,jdbcType=VARCHAR},
|
|
|
|
|
`path` = #{row.path,jdbcType=VARCHAR},
|
|
|
|
|
file_size = #{row.fileSize,jdbcType=INTEGER},
|
|
|
|
@ -255,6 +268,9 @@
|
|
|
|
|
<if test="termId != null">
|
|
|
|
|
term_id = #{termId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="type != null">
|
|
|
|
|
`type` = #{type,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fileName != null">
|
|
|
|
|
file_name = #{fileName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -277,6 +293,7 @@
|
|
|
|
|
-->
|
|
|
|
|
update mntn_uploads
|
|
|
|
|
set term_id = #{termId,jdbcType=INTEGER},
|
|
|
|
|
`type` = #{type,jdbcType=INTEGER},
|
|
|
|
|
file_name = #{fileName,jdbcType=VARCHAR},
|
|
|
|
|
`path` = #{path,jdbcType=VARCHAR},
|
|
|
|
|
file_size = #{fileSize,jdbcType=INTEGER},
|
|
|
|
|