浏览代码

修改like

wuxw 7 年之前
父节点
当前提交
b3d1a0a239
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      java110-db/src/main/resources/mapper/service/ServiceServiceDaoImplMapper.xml

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

@@ -157,7 +157,7 @@
             and t.url= #{url}
             and t.url= #{url}
         </if>
         </if>
         <if test="serviceUrl !=null and serviceUrl != ''">
         <if test="serviceUrl !=null and serviceUrl != ''">
-            and t.url like "%"#{serviceUrl}"%"
+            and t.url like '%#{serviceUrl}%'
         </if>
         </if>
         <if test="timeout !=null and timeout != ''">
         <if test="timeout !=null and timeout != ''">
             and t.timeout= #{timeout}
             and t.timeout= #{timeout}
@@ -169,7 +169,7 @@
             and t.name= #{name}
             and t.name= #{name}
         </if>
         </if>
         <if test="serviceName !=null and serviceName != ''">
         <if test="serviceName !=null and serviceName != ''">
-            and t.name like "%"#{serviceName}"%"
+            and t.name like '%#{serviceName}%'
         </if>
         </if>
         <if test="serviceId !=null and serviceId != ''">
         <if test="serviceId !=null and serviceId != ''">
             and t.service_id= #{serviceId}
             and t.service_id= #{serviceId}