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/BaSysSetMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaSysSetMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaSysSetMapper.xml index 6297087..2490834 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/BaSysSetMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/BaSysSetMapper.xml @@ -27,18 +27,18 @@ <!--@mbg.generated--> insert into ba_sys_set <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="id != null"> + <if test="id != null and id !=''"> id, </if> - <if test="sysName != null"> + <if test="sysName != null and sysName !=''"> sys_name, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null"> + <if test="id != null and id !=''"> #{id}, </if> - <if test="sysName != null"> + <if test="sysName != null and sysName !=''"> #{sysName}, </if> </trim> -- Gitblit v1.8.0