From 4988e04e82e530137da576c456871cc621483b12 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期一, 14 十月 2024 15:51:18 +0800 Subject: [PATCH] 优化文件管理controller相关功能 --- pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 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 9442d62..b0309e6 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml @@ -45,19 +45,19 @@ <if test="id != null"> id, </if> - <if test="orgName != null"> + <if test="orgName!= null and orgName !=''"> org_name, </if> - <if test="extName != null"> + <if test="extName!= null and extName !=''"> ext_name, </if> - <if test="newName != null"> + <if test="newName!= null and newName !=''"> new_name, </if> - <if test="hash != null"> + <if test="hash!= null"> hash, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> file_path, </if> <if test="dt != null"> @@ -68,19 +68,19 @@ <if test="id != null"> #{id}, </if> - <if test="orgName != null"> + <if test="orgName!= null and orgName !=''"> #{orgName}, </if> - <if test="extName != null"> + <if test="extName!= null and extName !=''"> #{extName}, </if> - <if test="newName != null"> + <if test="newName!= null and newName !=''"> #{newName}, </if> - <if test="hash != null"> + <if test="hash!= null"> #{hash}, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> #{filePath}, </if> <if test="dt != null"> @@ -92,19 +92,19 @@ <!--@mbg.generated--> update oth_file <set> - <if test="orgName != null"> + <if test="orgName!= null and orgName !=''"> org_name = #{orgName}, </if> - <if test="extName != null"> + <if test="extName!= null and extName !=''"> ext_name = #{extName}, </if> - <if test="newName != null"> + <if test="newName!= null and newName !=''"> new_name = #{newName}, </if> - <if test="hash != null"> + <if test="hash!= null"> hash = #{hash}, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> file_path = #{filePath}, </if> <if test="dt != null"> -- Gitblit v1.8.0