ソースを参照

sup 学员列表筛选

he2802 3 年 前
コミット
7ce5075f77

+ 6 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserQueryBo.java

@@ -176,4 +176,10 @@ public class UserQueryBo extends BaseEntity {
 	@ApiModelProperty("goodsSearchKey")
 	private String goodsSearchKey;
 
+	@ApiModelProperty("是否绑定微信 1是 0不是")
+	private Integer hasBindWx;
+
+	@ApiModelProperty("是否关注公众号 1是 0不是")
+	private Integer hasFollowWx;
+
 }

+ 12 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserMapper.xml

@@ -262,6 +262,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 #{item}
             </foreach>)
         </if>
+        <if test="hasBindWx != null and hasBindWx == 1 ">
+            AND u.union_id is not null
+        </if>
+        <if test="hasBindWx != null and hasBindWx == 0 ">
+            AND u.union_id is null
+        </if>
+        <if test="hasFollowWx != null and hasFollowWx == 1 ">
+            AND uwf.gzh_open_id is not null
+        </if>
+        <if test="hasFollowWx != null and hasFollowWx == 0 ">
+            AND uwf.gzh_open_id is null
+        </if>
     </select>