Преглед на файлове

系统设置-业务项目管理,搜索改成模糊搜索

anderx преди 7 години
родител
ревизия
64b6f786ed
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml

+ 1 - 1
src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml

@@ -625,7 +625,7 @@
   		left join business_varieties b2 on b.cid = b2.id
   		where b.delete_sign=0 
   		<if test="bname != null">
-		and b.bname = #{bname,jdbcType=VARCHAR}
+		and b.bname like concat('%',#{bname},'%')
 		</if>
 		<if test="cid != null">
 		and b.cid = #{cid,jdbcType=VARCHAR}