mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-17 21:16:41 +08:00
前端对象列表页面;文件对象管理页面后端Api;后端Api添加管理员身份验证
This commit is contained in:
@@ -7,42 +7,27 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="fileId" jdbcType="INTEGER" property="fileid" />
|
||||
<result column="storage_medium_type" jdbcType="TINYINT" property="storageMediumType" />
|
||||
<result column="file_id" jdbcType="INTEGER" property="fileId" />
|
||||
<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" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<result column="additional_fields" jdbcType="LONGVARCHAR" property="additionalFields" />
|
||||
<result column="additional_fields" jdbcType="VARCHAR" property="additionalFields" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, fileId, storage_medium_type, file_path, file_pwd, file_share_code
|
||||
id, file_id, storage_medium_type, file_path, file_pwd, file_share_code, additional_fields
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
additional_fields
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from file_object_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
@@ -59,12 +44,12 @@
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into file_object_info (id, fileId, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
insert into file_object_info (id, file_id, storage_medium_type,
|
||||
file_path, file_pwd, file_share_code,
|
||||
additional_fields)
|
||||
values (#{id,jdbcType=INTEGER}, #{fileid,jdbcType=INTEGER}, #{storageMediumType,jdbcType=TINYINT},
|
||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||
#{additionalFields,jdbcType=LONGVARCHAR})
|
||||
values (#{id,jdbcType=INTEGER}, #{fileId,jdbcType=INTEGER}, #{storageMediumType,jdbcType=VARCHAR},
|
||||
#{filePath,jdbcType=VARCHAR}, #{filePwd,jdbcType=VARCHAR}, #{fileShareCode,jdbcType=VARCHAR},
|
||||
#{additionalFields,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
@@ -76,8 +61,8 @@
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
fileId,
|
||||
<if test="fileId != null">
|
||||
file_id,
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type,
|
||||
@@ -99,11 +84,11 @@
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fileid != null">
|
||||
#{fileid,jdbcType=INTEGER},
|
||||
<if test="fileId != null">
|
||||
#{fileId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
#{storageMediumType,jdbcType=TINYINT},
|
||||
#{storageMediumType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
@@ -115,7 +100,7 @@
|
||||
#{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
#{additionalFields,jdbcType=LONGVARCHAR},
|
||||
#{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -126,11 +111,11 @@
|
||||
-->
|
||||
update file_object_info
|
||||
<set>
|
||||
<if test="fileid != null">
|
||||
fileId = #{fileid,jdbcType=INTEGER},
|
||||
<if test="fileId != null">
|
||||
file_id = #{fileId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="storageMediumType != null">
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="filePath != null">
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
@@ -142,36 +127,28 @@
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="additionalFields != null">
|
||||
additional_fields = #{additionalFields,jdbcType=LONGVARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update file_object_info
|
||||
set fileId = #{fileid,jdbcType=INTEGER},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="plus.bookshelf.Dao.DO.FileObjectDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update file_object_info
|
||||
set fileId = #{fileid,jdbcType=INTEGER},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=TINYINT},
|
||||
set file_id = #{fileId,jdbcType=INTEGER},
|
||||
storage_medium_type = #{storageMediumType,jdbcType=VARCHAR},
|
||||
file_path = #{filePath,jdbcType=VARCHAR},
|
||||
file_pwd = #{filePwd,jdbcType=VARCHAR},
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR}
|
||||
file_share_code = #{fileShareCode,jdbcType=VARCHAR},
|
||||
additional_fields = #{additionalFields,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="selectAll" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from file_object_info
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user