瀏覽代碼

智能预问诊支持模糊查询

gaodm 5 年之前
父節點
當前提交
357ef10a65
共有 1 個文件被更改,包括 1 次插入1 次删除
  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}