Showing
2 changed files
with
12 additions
and
0 deletions
| @@ -23,6 +23,14 @@ public class QueryCustomerVo extends SortPageVo implements BaseVo, Serializable | @@ -23,6 +23,14 @@ public class QueryCustomerVo extends SortPageVo implements BaseVo, Serializable | ||
| 23 | @ApiModelProperty("名称") | 23 | @ApiModelProperty("名称") |
| 24 | private String name; | 24 | private String name; |
| 25 | 25 | ||
| 26 | + /** | ||
| 27 | + * 搜索关键字 | ||
| 28 | + * 名称或编号 | ||
| 29 | + * 移动端使用 | ||
| 30 | + */ | ||
| 31 | + @ApiModelProperty("搜索关键字") | ||
| 32 | + private String searchKey; | ||
| 33 | + | ||
| 26 | /** | 34 | /** |
| 27 | * 状态 | 35 | * 状态 |
| 28 | */ | 36 | */ |
| @@ -90,6 +90,10 @@ | @@ -90,6 +90,10 @@ | ||
| 90 | AND 1 = 1 <!-- 确保查询到任何数据 --> | 90 | AND 1 = 1 <!-- 确保查询到任何数据 --> |
| 91 | </otherwise> | 91 | </otherwise> |
| 92 | </choose> | 92 | </choose> |
| 93 | + <if test="vo.searchKey != null and vo.searchKey != ''"> | ||
| 94 | + AND (c.code LIKE CONCAT('%', #{vo.searchKey}, '%') | ||
| 95 | + OR c.name LIKE CONCAT('%', #{vo.searchKey}, '%')) | ||
| 96 | + </if> | ||
| 93 | </if> | 97 | </if> |
| 94 | </where> | 98 | </where> |
| 95 | ORDER BY c.code | 99 | ORDER BY c.code |