ソースを参照

Merge remote-tracking branch 'origin/dev/diagbotcloud20190924_diagnose2' into dev/diagbotcloud20190924_diagnose2

wangfeng 5 年 前
コミット
f8a1549b11

+ 2 - 2
knowledgeman-service/src/main/resources/mapper/DiagnoseMapper.xml

@@ -59,7 +59,7 @@
     </update>
 
 
-    <select id="search" resultType="com.diagbot.vo.DiagnoseSearchVO">
+    <select id="search" resultType="com.diagbot.entity.LibraryInfo">
         SELECT a.* FROM kl_library_info a, kl_concept b
         WHERE a.is_deleted = 'N' and b.is_deleted = 'N'
         AND a.concept_id = b.id
@@ -69,7 +69,7 @@
                 #{item}
             </foreach>
         </if>
-        AND (a.NAME LIKE  #{name} OR a.spell LIKE #{name})
+        AND (a.NAME LIKE  concat('%',#{name},'%') OR a.spell LIKE concat('%',#{name},'%'))
     </select>
 
 </mapper>