1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-22 01:30:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

删除文件列表缩略图字段;样式小调整

This commit is contained in:
2022-04-10 17:36:07 +08:00
parent 2912c09098
commit 413411ddb6
8 changed files with 44 additions and 65 deletions

View File

@@ -34,9 +34,6 @@ public class FileVO {
// 文件来源 电子版/扫描版
String bookOrigin;
// 缩略图
private String thumbnail;
// 文件创建时间
long fileCreateAt;

View File

@@ -84,15 +84,6 @@ public class FileDO {
*/
private String bookOrigin;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column file_info.thumbnail
*
* @mbg.generated
*/
private String thumbnail;
/**
*
* This field was generated by MyBatis Generator.
@@ -345,30 +336,6 @@ public class FileDO {
this.bookOrigin = bookOrigin == null ? null : bookOrigin.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column file_info.thumbnail
*
* @return the value of file_info.thumbnail
*
* @mbg.generated
*/
public String getThumbnail() {
return thumbnail;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column file_info.thumbnail
*
* @param thumbnail the value for file_info.thumbnail
*
* @mbg.generated
*/
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail == null ? null : thumbnail.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column file_info.file_create_at

View File

@@ -34,9 +34,6 @@ public class FileModel {
// 文件来源 电子版/扫描版
String bookOrigin;
// 缩略图
private String thumbnail;
// 文件创建时间
Date fileCreateAt;

View File

@@ -15,7 +15,6 @@
<result column="watermark" jdbcType="BIT" property="watermark" />
<result column="advertising" jdbcType="BIT" property="advertising" />
<result column="book_origin" jdbcType="VARCHAR" property="bookOrigin" />
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
<result column="file_create_at" jdbcType="TIMESTAMP" property="fileCreateAt" />
<result column="file_modified_at" jdbcType="TIMESTAMP" property="fileModifiedAt" />
<result column="file_size" jdbcType="BIGINT" property="fileSize" />
@@ -27,8 +26,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, book_id, file_display_name, file_name, file_format, number_of_pages, watermark,
advertising, book_origin, thumbnail, file_create_at, file_modified_at, file_size,
hash_sha1
advertising, book_origin, file_create_at, file_modified_at, file_size, hash_sha1
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--
@@ -56,13 +54,13 @@
insert into file_info (id, book_id, file_display_name,
file_name, file_format, number_of_pages,
watermark, advertising, book_origin,
thumbnail, file_create_at, file_modified_at,
file_size, hash_sha1)
file_create_at, file_modified_at, file_size,
hash_sha1)
values (#{id,jdbcType=INTEGER}, #{bookId,jdbcType=INTEGER}, #{fileDisplayName,jdbcType=VARCHAR},
#{fileName,jdbcType=VARCHAR}, #{fileFormat,jdbcType=VARCHAR}, #{numberOfPages,jdbcType=INTEGER},
#{watermark,jdbcType=BIT}, #{advertising,jdbcType=BIT}, #{bookOrigin,jdbcType=VARCHAR},
#{thumbnail,jdbcType=VARCHAR}, #{fileCreateAt,jdbcType=TIMESTAMP}, #{fileModifiedAt,jdbcType=TIMESTAMP},
#{fileSize,jdbcType=BIGINT}, #{hashSha1,jdbcType=VARCHAR})
#{fileCreateAt,jdbcType=TIMESTAMP}, #{fileModifiedAt,jdbcType=TIMESTAMP}, #{fileSize,jdbcType=BIGINT},
#{hashSha1,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.FileDO">
<!--
@@ -98,9 +96,6 @@
<if test="bookOrigin != null">
book_origin,
</if>
<if test="thumbnail != null">
thumbnail,
</if>
<if test="fileCreateAt != null">
file_create_at,
</if>
@@ -142,9 +137,6 @@
<if test="bookOrigin != null">
#{bookOrigin,jdbcType=VARCHAR},
</if>
<if test="thumbnail != null">
#{thumbnail,jdbcType=VARCHAR},
</if>
<if test="fileCreateAt != null">
#{fileCreateAt,jdbcType=TIMESTAMP},
</if>
@@ -190,9 +182,6 @@
<if test="bookOrigin != null">
book_origin = #{bookOrigin,jdbcType=VARCHAR},
</if>
<if test="thumbnail != null">
thumbnail = #{thumbnail,jdbcType=VARCHAR},
</if>
<if test="fileCreateAt != null">
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
</if>
@@ -222,7 +211,6 @@
watermark = #{watermark,jdbcType=BIT},
advertising = #{advertising,jdbcType=BIT},
book_origin = #{bookOrigin,jdbcType=VARCHAR},
thumbnail = #{thumbnail,jdbcType=VARCHAR},
file_create_at = #{fileCreateAt,jdbcType=TIMESTAMP},
file_modified_at = #{fileModifiedAt,jdbcType=TIMESTAMP},
file_size = #{fileSize,jdbcType=BIGINT},