Sfoglia il codice sorgente

优化模糊查询服务功能】

java110 6 anni fa
parent
commit
dbdf55d492

+ 2 - 2
java110-db/src/main/resources/mapper/community/ServiceServiceDaoImplMapper.xml

@@ -166,7 +166,7 @@
             and t.is_instance= #{isInstance}
         </if>
         <if test="name !=null and name != ''">
-            and t.name= #{name}
+            and t.name concat('%',#{name},'%')
         </if>
         <if test="serviceName !=null and serviceName != ''">
             and t.name like concat('%',#{serviceName},'%')
@@ -279,7 +279,7 @@
             and t.is_instance= #{isInstance}
         </if>
         <if test="name !=null and name != ''">
-            and t.name= #{name}
+            and t.name concat('%',#{name},'%')
         </if>
         <if test="serviceName !=null and serviceName != ''">
             and t.name like concat('%',#{serviceName},'%')