From 591e3b8a10ed15023f3ad9e5a72a887ef89b0bb2 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期一, 26 八月 2024 20:47:46 +0800 Subject: [PATCH] 修改判空方式 --- pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 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..a29bce5 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml @@ -42,48 +42,48 @@ <!--@mbg.generated--> insert into oth_file <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="id != null"> + <if test="id != null and id !=''"> 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 and hash !=''"> hash, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> file_path, </if> - <if test="dt != null"> + <if test="dt != null and dt !=''"> dt, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null"> + <if test="id != null and id !=''"> #{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 and hash !=''"> #{hash}, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> #{filePath}, </if> - <if test="dt != null"> + <if test="dt != null and dt !=''"> #{dt}, </if> </trim> @@ -92,22 +92,22 @@ <!--@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 and hash !=''"> hash = #{hash}, </if> - <if test="filePath != null"> + <if test="filePath!= null and filePath !=''"> file_path = #{filePath}, </if> - <if test="dt != null"> + <if test="dt != null and dt !=''"> dt = #{dt}, </if> </set> -- Gitblit v1.8.0