소스 검색

优化代码

java110 6 년 전
부모
커밋
86785f7d74
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      java110-db/src/main/resources/mapper/community/ServiceServiceDaoImplMapper.xml

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

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