From bc8ab2ccb801ece9f2638098e8acd07f3ef1978d Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期五, 30 八月 2024 20:35:09 +0800
Subject: [PATCH] 2024-08-30 朱宝民 解决获取水卡列表接口错误,无虚拟卡时不显示空对象

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml
index b97da7e..de4c4e3 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaClientTypeMapper.xml
@@ -37,7 +37,7 @@
     count(*)
     from ba_client_type
     <trim prefix="where" suffixOverrides="and">
-      <if test="name != null">
+      <if test="name != null and name != ''">
         name like concat('%', #{name}, '%') and
       </if>
     </trim>
@@ -48,7 +48,7 @@
     <include refid="Base_Column_List" />
     from ba_client_type
     <trim prefix="where" suffixOverrides="and">
-      <if test="name != null">
+      <if test="name != null and name != ''">
         name like concat('%', #{name}, '%')
       </if>
     </trim>
@@ -60,7 +60,7 @@
     </trim>
   </select>
 
-  <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoBa.BaClientType">
+  <insert id="putin" parameterType="com.dy.pipIrrGlobal.pojoBa.BaClientType">
     <!--@mbg.generated-->
     insert into ba_client_type (id, `name`)
     values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR})

--
Gitblit v1.8.0