From 3d6ca92772712a037f1ebc9648a4b1feaf8d198f Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期六, 27 四月 2024 18:56:52 +0800
Subject: [PATCH] 1、修改DownloadFileCtrl中的文件名称转码方式; 2、用EasyExcel实现标识类二维码导出excel文件并下载功能。
---
pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
index 2ce8b6c..1763752 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
@@ -10,10 +10,11 @@
<result column="new_name" property="newName" />
<result column="hash" property="hash" />
<result column="file_path" property="filePath" />
+ <result column="dt" property="dt" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
- id, org_name, ext_name, new_name, hash, file_path
+ id, org_name, ext_name, new_name, hash, file_path, dt
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--@mbg.generated-->
@@ -29,8 +30,10 @@
</delete>
<insert id="insert" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
<!--@mbg.generated-->
- insert into oth_file (id, org_name, ext_name, new_name, hash, file_path)
- values (#{id}, #{orgName}, #{extName}, #{newName}, #{hash}, #{filePath})
+ insert into oth_file (id, org_name, ext_name, new_name, hash, file_path,
+ dt)
+ values (#{id}, #{orgName}, #{extName}, #{newName}, #{hash}, #{filePath},
+ #{dt})
</insert>
<insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFile">
<!--@mbg.generated-->
@@ -54,6 +57,9 @@
<if test="filePath != null">
file_path,
</if>
+ <if test="dt != null">
+ dt,
+ </if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@@ -73,6 +79,9 @@
</if>
<if test="filePath != null">
#{filePath},
+ </if>
+ <if test="dt != null">
+ #{dt},
</if>
</trim>
</insert>
@@ -95,6 +104,9 @@
<if test="filePath != null">
file_path = #{filePath},
</if>
+ <if test="dt != null">
+ dt = #{dt},
+ </if>
</set>
where id = #{id}
</update>
@@ -105,7 +117,8 @@
ext_name = #{extName},
new_name = #{newName},
hash = #{hash},
- file_path = #{filePath}
+ file_path = #{filePath},
+ dt = #{dt}
where id = #{id}
</update>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0