From 53a365fb64b49ee85f528341c785c4beab1d1f43 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期二, 27 八月 2024 14:57:58 +0800
Subject: [PATCH] 修改判空方式

---
 pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
index 9a5d3e4..1c2b4b8 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
@@ -36,7 +36,7 @@
     <!--@mbg.generated-->
     insert into ba_log
     <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="userId != null and userId !=''">
+      <if test="userId != null">
         user_id,
       </if>
       <if test="userName != null and userName !=''">
@@ -56,7 +56,7 @@
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="userId != null and userId !=''">
+      <if test="userId != null">
         #{userId,jdbcType=BIGINT},
       </if>
       <if test="userName != null and userName !=''">
@@ -82,7 +82,7 @@
     <include refid="Base_Column_List" />
     from ba_log r
     <trim prefix="where " suffixOverrides="and">
-      <if test="userId != null and userId != ''">
+      <if test="userId != null">
         user_id = #{userId,jdbcType=BIGINT} and
       </if>
       <if test="userName != null and userName != ''">
@@ -110,7 +110,7 @@
     select count(1)
     from ba_log r
     <trim prefix="where " suffixOverrides="and">
-      <if test="userId != null and userId != ''">
+      <if test="userId != null">
         user_id = #{userId,jdbcType=BIGINT} and
       </if>
       <if test="userName != null and userName != ''">

--
Gitblit v1.8.0