Commit 4687a2eede27dbeb1f51394456d12a7e52a730df

Authored by yeqianyong
2 parents 481c330f 1eda34cc

Merge branch 'master_0929' into master_after20

... ... @@ -23,6 +23,14 @@ public class QueryCustomerVo extends SortPageVo implements BaseVo, Serializable
23 23 @ApiModelProperty("名称")
24 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 90 AND 1 = 1 <!-- 确保查询到任何数据 -->
91 91 </otherwise>
92 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 97 </if>
94 98 </where>
95 99 ORDER BY c.code
... ...