Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -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} |