Showing
1 changed file
with
3 additions
and
4 deletions
| ... | ... | @@ -192,7 +192,9 @@ |
| 192 | 192 | <if test="vo.companySuggestedCategory != null and vo.companySuggestedCategory != ''"> |
| 193 | 193 | AND tb.company_suggested_category = #{vo.companySuggestedCategory} |
| 194 | 194 | </if> |
| 195 | - | |
| 195 | + <if test="vo.companyName != null and vo.companyName != ''"> | |
| 196 | + AND cu.name LIKE CONCAT('%', #{vo.companyName},'%') | |
| 197 | + </if> | |
| 196 | 198 | </where> |
| 197 | 199 | </select> |
| 198 | 200 | |
| ... | ... | @@ -202,9 +204,6 @@ |
| 202 | 204 | <if test="id != null"> |
| 203 | 205 | AND tb.id = #{id} |
| 204 | 206 | </if> |
| 205 | - <if test="vo.companyName != null and vo.companyName != ''"> | |
| 206 | - AND cu.name LIKE CONCAT('%', #{vo.companyName},'%') | |
| 207 | - </if> | |
| 208 | 207 | </where> |
| 209 | 208 | </select> |
| 210 | 209 | ... | ... |