Browse Source

智能预问诊支持模糊查询

gaodm 5 years ago
parent
commit
357ef10a65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      precman-service/src/main/resources/mapper/ModuleInfoMapper.xml

+ 1 - 1
precman-service/src/main/resources/mapper/ModuleInfoMapper.xml

@@ -31,7 +31,7 @@
     <select id="getModuleInfoListByType" resultType="com.diagbot.dto.ModuleInfoListDTO">
         SELECT * FROM `prec_module_info` WHERE is_deleted = 'N'
         <if test="name != null and name != ''">
-            and name = #{name}
+            and name like concat ('%',#{name},'%')
         </if>
         <if test="type != null and type != ''">
             and type = #{type}