he2802 3 жил өмнө
parent
commit
455d17a38b

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserSubscribeQueryBo.java

@@ -100,4 +100,8 @@ public class UserSubscribeQueryBo extends BaseEntity {
 	/** 身份证号 */
 	@ApiModelProperty("身份证号列表")
 	private List<String> idCards;
+
+	/** 查找key */
+	@ApiModelProperty("searchKey")
+	private String searchKey;
 }

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -83,6 +83,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
         WHERE
             1 =1
+        <if test="searchKey != null and searchKey != '' ">
+            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%'))
+        </if>
         <if test="idCards != null and idCards.size()!=0 ">
             AND u.id_card in
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">