mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-17 21:16:41 +08:00
/file/list; /file/object/list 修改为POST提交;完善上传文件部分代码;清理多余import;修正一些代码Bug
This commit is contained in:
@@ -8,10 +8,15 @@
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="file_id" jdbcType="INTEGER" property="fileId" />
|
||||
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
|
||||
<result column="file_size" jdbcType="BIGINT" property="fileSize" />
|
||||
<result column="file_type" jdbcType="VARCHAR" property="fileType" />
|
||||
<result column="storage_medium_type" jdbcType="VARCHAR" property="storageMediumType" />
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||
<result column="file_pwd" jdbcType="VARCHAR" property="filePwd" />
|
||||
<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="additional_fields" jdbcType="VARCHAR" property="additionalFields" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
@@ -19,7 +24,8 @@
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, file_id, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
||||
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
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -44,12 +50,16 @@
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into file_object_info (id, file_id, storage_medium_type,
|
||||
insert into file_object_info (id, file_id, file_name,
|
||||
file_size, file_type, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
additional_fields)
|
||||
values (#{id,jdbcType=INTEGER}, #{fileId,jdbcType=INTEGER}, #{storageMediumType,jdbcType=VARCHAR},
|
||||
upload_status, file_sha1, 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},
|
||||
#{additionalFields,jdbcType=VARCHAR})
|
||||
#{uploadStatus,jdbcType=VARCHAR}, #{fileSha1,jdbcType=VARCHAR}, #{additionalFields,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
@@ -64,6 +74,15 @@
|
||||
<if test="fileId != null">
|
||||
file_id,
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name,
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size,
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
file_type,
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type,
|
||||
</if>
|
||||
@@ -76,6 +95,12 @@
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code,
|
||||
</if>
|
||||
<if test="uploadStatus != null">
|
||||
upload_status,
|
||||
</if>
|
||||
<if test="fileSha1 != null">
|
||||
file_sha1,
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields,
|
||||
</if>
|
||||
@@ -87,6 +112,15 @@
|
||||
<if test="fileId != null">
|
||||
#{fileId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
#{fileSize,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
#{fileType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
#{storageMediumType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -99,6 +133,12 @@
|
||||
<if test="fileShareCode != null">
|
||||
#{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadStatus != null">
|
||||
#{uploadStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSha1 != null">
|
||||
#{fileSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
#{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -114,6 +154,15 @@
|
||||
<if test="fileId != null">
|
||||
file_id = #{fileId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size = #{fileSize,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
file_type = #{fileType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type = #{storageMediumType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -126,6 +175,12 @@
|
||||
<if test="fileShareCode != null">
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadStatus != null">
|
||||
upload_status = #{uploadStatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSha1 != null">
|
||||
file_sha1 = #{fileSha1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -139,10 +194,15 @@
|
||||
-->
|
||||
update file_object_info
|
||||
set file_id = #{fileId,jdbcType=INTEGER},
|
||||
file_name = #{fileName,jdbcType=VARCHAR},
|
||||
file_size = #{fileSize,jdbcType=BIGINT},
|
||||
file_type = #{fileType,jdbcType=VARCHAR},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=VARCHAR},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
upload_status = #{uploadStatus,jdbcType=VARCHAR},
|
||||
file_sha1 = #{fileSha1,jdbcType=VARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
@@ -151,4 +211,10 @@
|
||||
<include refid="Base_Column_List" />
|
||||
from file_object_info
|
||||
</select>
|
||||
<select id="selectByFilePath" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_object_info
|
||||
where file_path = #{filePath}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user