Commit e4c06f8b6009293309b8314d0520b23725e301e9

Authored by yeqianyong
1 parent 055f2fb9

楚江ERP-生产厂模糊搜索bug修复

@@ -32,10 +32,10 @@ @@ -32,10 +32,10 @@
32 <include refid="Workshop_sql"/> 32 <include refid="Workshop_sql"/>
33 <where> 33 <where>
34 <if test="vo.code != null and vo.code != ''"> 34 <if test="vo.code != null and vo.code != ''">
35 - AND tb.code LIKE CONCAT('%', #{vo.code}) 35 + AND tb.code LIKE CONCAT('%', #{vo.code}, '%')
36 </if> 36 </if>
37 <if test="vo.name != null and vo.name != ''"> 37 <if test="vo.name != null and vo.name != ''">
38 - AND tb.name LIKE CONCAT('%', #{vo.name}) 38 + AND tb.name LIKE CONCAT('%', #{vo.name}, '%')
39 </if> 39 </if>
40 <if test="vo.type != null"> 40 <if test="vo.type != null">
41 AND tb.type = #{vo.type} 41 AND tb.type = #{vo.type}