Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -32,10 +32,10 @@ |
| 32 | 32 | <include refid="Workshop_sql"/> |
| 33 | 33 | <where> |
| 34 | 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 | 36 | </if> |
| 37 | 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 | 39 | </if> |
| 40 | 40 | <if test="vo.type != null"> |
| 41 | 41 | AND tb.type = #{vo.type} | ... | ... |