From a1808ba0ff1ccc2efacb69c1033054dbaab8687f Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期四, 10 七月 2025 17:57:16 +0800 Subject: [PATCH] 2025-07-10 --- ltkj-hosp/src/main/resources/mapper/hosp/SysAttachmentMapper.xml | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/SysAttachmentMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/SysAttachmentMapper.xml index d23cc15..a9533c1 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/SysAttachmentMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/hosp/SysAttachmentMapper.xml @@ -15,10 +15,11 @@ <result property="uploadTime" column="upload_time"/> <result property="ip" column="ip"/> <result property="url" column="url"/> + <result property="oldFileName" column="old_file_name"/> </resultMap> <sql id="selectSysAttachmentVo"> - select id, sys_dict_val, file_path, file_name, file_size, file_size_mb, file_size_gb, upload_time, ip,url + select id, sys_dict_val, file_path, file_name, file_size, file_size_mb, file_size_gb, upload_time, ip,url,old_file_name from sys_attachment </sql> @@ -84,6 +85,8 @@ </if> <if test="url != null and url != ''">url, </if> + <if test="oldFileName != null and oldFileName != ''">old_file_name, + </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id}, @@ -105,6 +108,8 @@ <if test="ip != null and ip != ''">#{ip}, </if> <if test="url != null and url != ''">#{url}, + </if> + <if test="oldFileName != null and oldFileName != ''">#{oldFileName}, </if> </trim> </insert> @@ -139,6 +144,9 @@ <if test="url != null and url != ''">ip = #{url}, </if> + <if test="oldFileName != null and oldFileName != ''">old_file_name = + #{oldFileName}, + </if> </trim> where id = #{id} </update> -- Gitblit v1.8.0