mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-09 01:05:14 +08:00
添加文件修改日期字段;前端列表小调整
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
<result column="file_share_code" jdbcType="VARCHAR" property="fileShareCode" />
|
||||
<result column="upload_status" jdbcType="VARCHAR" property="uploadStatus" />
|
||||
<result column="file_sha1" jdbcType="VARCHAR" property="fileSha1" />
|
||||
<result column="last_modified" jdbcType="BIGINT" property="lastModified" />
|
||||
<result column="additional_fields" jdbcType="VARCHAR" property="additionalFields" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
@@ -25,7 +26,7 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, file_id, file_name, file_size, file_type, storage_medium_type, file_path, file_pwd,
|
||||
file_share_code, upload_status, file_sha1, additional_fields
|
||||
file_share_code, upload_status, file_sha1, last_modified, additional_fields
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -53,13 +54,13 @@
|
||||
insert into file_object_info (id, file_id, file_name,
|
||||
file_size, file_type, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
upload_status, file_sha1, additional_fields
|
||||
)
|
||||
upload_status, file_sha1, last_modified,
|
||||
additional_fields)
|
||||
values (#{id,jdbcType=INTEGER}, #{fileId,jdbcType=INTEGER}, #{fileName,jdbcType=VARCHAR},
|
||||
#{fileSize,jdbcType=BIGINT}, #{fileType,jdbcType=VARCHAR}, #{storageMediumType,jdbcType=VARCHAR},
|
||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||
#{uploadStatus,jdbcType=VARCHAR}, #{fileSha1,jdbcType=VARCHAR}, #{additionalFields,jdbcType=VARCHAR}
|
||||
)
|
||||
#{uploadStatus,jdbcType=VARCHAR}, #{fileSha1,jdbcType=VARCHAR}, #{lastModified,jdbcType=BIGINT},
|
||||
#{additionalFields,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
@@ -101,6 +102,9 @@
|
||||
<if test="fileSha1 != null">
|
||||
file_sha1,
|
||||
</if>
|
||||
<if test="lastModified != null">
|
||||
last_modified,
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields,
|
||||
</if>
|
||||
@@ -139,6 +143,9 @@
|
||||
<if test="fileSha1 != null">
|
||||
#{fileSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lastModified != null">
|
||||
#{lastModified,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
#{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -181,6 +188,9 @@
|
||||
<if test="fileSha1 != null">
|
||||
file_sha1 = #{fileSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lastModified != null">
|
||||
last_modified = #{lastModified,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -203,6 +213,7 @@
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
upload_status = #{uploadStatus,jdbcType=VARCHAR},
|
||||
file_sha1 = #{fileSha1,jdbcType=VARCHAR},
|
||||
last_modified = #{lastModified,jdbcType=BIGINT},
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user