From d82642e04f2dd9f2dc04dd7196a1e83fcfc95913 Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期二, 27 八月 2024 11:31:40 +0800 Subject: [PATCH] order status --- 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