|
|
@@ -149,14 +149,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.user.bo.UserQueryBo" resultMap="UserResult">
|
|
|
SELECT DISTINCT
|
|
|
u.*,
|
|
|
- (case WHEN u.union_id is null then 0 ELSE 1 end) as user_bind_wx,
|
|
|
- (case WHEN uwf.gzh_open_id is null then 0 ELSE 1 end) as user_follow_wx
|
|
|
+ (case WHEN u.union_id is null then 0 ELSE 1 end) as user_bind_wx
|
|
|
<if test="getOrderNum != null and getOrderNum == 1" >
|
|
|
,ou.goods_course_num,ou.goods_bank_num,ou.goods_live_num
|
|
|
</if>
|
|
|
FROM
|
|
|
`user` u
|
|
|
- LEFT JOIN user_wx_follow uwf ON u.union_id = uwf.union_id
|
|
|
+
|
|
|
<if test="getOrderNum != null and getOrderNum == 1" >
|
|
|
LEFT JOIN (
|
|
|
SELECT
|