Просмотр исходного кода

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

anderx лет назад: 7
Родитель
Сommit
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
   		left join business_varieties b2 on b.cid = b2.id
   		where b.delete_sign=0 
   		where b.delete_sign=0 
   		<if test="bname != null">
   		<if test="bname != null">
-		and b.bname = #{bname,jdbcType=VARCHAR}
+		and b.bname like concat('%',#{bname},'%')
 		</if>
 		</if>
 		<if test="cid != null">
 		<if test="cid != null">
 		and b.cid = #{cid,jdbcType=VARCHAR}
 		and b.cid = #{cid,jdbcType=VARCHAR}