select aud.userid as `userId`,aud.realname as `realName`,aud.nickname as `nickName`,aul.username as `phone`,aud.position_id as `postionId`,aup.name as `postionName`,aupt.company_id as `companyId`,aupt.company_name as `companyName`
select aud.userid as `userId`,aud.realname as `realName`,aud.nickname as `nickName`,aul.username as
from `app_user_detail` as `aud` left join `app_user_login` as `aul` on aul.id=aud.userid
`phone`,aud.position_id as `postionId`,aup.name as `postionName`,aupt.company_id as
`companyId`,aupt.company_name as `companyName`
from `app_user_detail` as `aud` left join `app_user_login` as `aul` on aul.id=aud.userid
left join `app_user_position_temp` as `aupt` on aupt.user_id=aul.id
left join `app_user_position_temp` as `aupt` on aupt.user_id=aul.id
left join `app_user_position` as `aup` on aup.id=aud.position_id
left join `app_user_position` as `aup` on aup.id=aud.position_id
where <![CDATA[aud.position_id<>6]]> and aud.isdel=0
where <![CDATA[aud.position_id<>6]]> and aud.isdel=0
...
@@ -342,29 +350,35 @@ from `app_user_detail` as `aud` left join `app_user_login` as `aul` on aul.id=
...
@@ -342,29 +350,35 @@ from `app_user_detail` as `aud` left join `app_user_login` as `aul` on aul.id=
order by sell.sellAmount desc
order by sell.sellAmount desc
</select>
</select>
<selectid="getUser"resultMap="AppUserVoMap">
<selectid="getUser"resultMap="AppUserVoMap">
select l.im_userid,l.username,l.wx_openid,l.unionid,l.openid,l.status,l.id_number,l.certification_status,d.* from app_user_login l
select aud.userid as `userId`,case when length(aud.realname)>0 then aud.realname else aud.nickname end as `name`,aul.username as `phone` from `app_user_detail` as aud left join `app_user_login` as aul on aul.id=aud.userid
select aud.userid as `userId`,case when length(aud.realname)>0 then aud.realname else aud.nickname end as
`name`,aul.username as `phone` from `app_user_detail` as aud left join `app_user_login` as aul on
aul.id=aud.userid
<where>
<where>
<iftest="userIds != null and userIds.size() != 0">
<iftest="userIds != null and userIds.size() != 0">