初期启动页增加文件访问url

master
elliott 2 years ago
parent de284c9128
commit 535961b2b0

@ -30,6 +30,10 @@ public class SysFiringInfo extends BaseEntity
@Excel(name = "文件路径")
private String filePath;
/** 文件访问路径 */
@Excel(name = "文件访问路径")
private String fileUrl;
/** 文件类型 */
@Excel(name = "文件类型")
private String fileSuffix;
@ -104,6 +108,14 @@ public class SysFiringInfo extends BaseEntity
this.content = content;
}
public String getFileUrl() {
return fileUrl;
}
public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="id" column="id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="fileUrl" column="file_url" />
<result property="filePath" column="file_path" />
<result property="fileSuffix" column="file_suffix" />
<result property="delFlag" column="del_flag" />
@ -17,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectSysFiringInfoVo">
select id, title,content, file_path, file_suffix, del_flag, type, create_time, create_by from sys_firing_info
select id, title,content,file_url, file_path, file_suffix, del_flag, type, create_time, create_by from sys_firing_info
</sql>
<select id="selectSysFiringInfoList" parameterType="SysFiringInfo" resultMap="SysFiringInfoResult">
@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="filePath != null">file_path,</if>
<if test="fileUrl != null">file_url,</if>
<if test="fileSuffix != null">file_suffix,</if>
<if test="delFlag != null">del_flag,</if>
<if test="type != null">type,</if>
@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="filePath != null">#{filePath},</if>
<if test="fileUrl != null">#{fileUrl},</if>
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="fileSuffix != null">#{fileSuffix},</if>
@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="fileUrl != null">file_url = #{fileUrl},</if>
<if test="filePath != null">file_path = #{filePath},</if>
<if test="fileSuffix != null">file_suffix = #{fileSuffix},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>

Loading…
Cancel
Save