From 732b40515d87a1780a5986227513d507076ca5eb Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 27 八月 2024 13:56:10 +0800
Subject: [PATCH] fix order search

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

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserRoleMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserRoleMapper.xml
index cc95372..93348e1 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaUserRoleMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserRoleMapper.xml
@@ -20,18 +20,18 @@
     <!--@mbg.generated-->
     insert into ba_user_role
     <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="userId != null">
+      <if test="userId != null and userId !=''">
         user_id,
       </if>
-      <if test="roleId != null">
+      <if test="roleId != null and roleId !=''">
         role_id,
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="userId != null">
+      <if test="userId != null and userId !=''">
         #{userId},
       </if>
-      <if test="roleId != null">
+      <if test="roleId != null and roleId !=''">
         #{roleId},
       </if>
     </trim>

--
Gitblit v1.8.0