From 95bd45377f1e04b448d407e3af4ee2707b90a24b Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期四, 17 八月 2023 17:07:52 +0800
Subject: [PATCH] MOM系统-8-17计量管理版本一结束

---
 standard-server/src/main/resources/mapper/TechnologyTemplateMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/standard-server/src/main/resources/mapper/TechnologyTemplateMapper.xml b/standard-server/src/main/resources/mapper/TechnologyTemplateMapper.xml
index 641694e..01e5925 100644
--- a/standard-server/src/main/resources/mapper/TechnologyTemplateMapper.xml
+++ b/standard-server/src/main/resources/mapper/TechnologyTemplateMapper.xml
@@ -31,13 +31,13 @@
         from mom_ocean.technology_template t
         <where>
             state=1
-            <if test="type!=null">
+            <if test="type!=null and type!=''">
                 and type=#{type}
             </if>
-            <if test="element!=null">
+            <if test="element!=null and element!=''">
                 and element like concat('%',#{element},'%')
             </if>
-            <if test="father!=null">
+            <if test="father!=null and father!=''">
                 and father like concat('%',#{father},'%')
             </if>
         </where>

--
Gitblit v1.9.3