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 l.im_userid,l.username,l.wx_openid,l.unionid,l.openid,l.status,l.id_number,l.certification_status,d.*,p.name as jobTitle,buml.name as memberName from app_user_login l
left join app_user_detail d
left join app_user_detail d
on d.userid = l.id
on d.userid = l.id
where d.userid = #{userId} limit 1
left join base_user_member bum
on bum.user_id=l.id
left join base_user_member_level buml
on bum.member_level = buml.level
left join app_user_position p
on d.position_id=p.id
where
p.is_del=0
and
buml.isdel=0
and
bum.is_del=0
and
d.userid = #{userId} limit 1
</select>
<!-- 获取用户信息 -->
<selectid="getUserVo"resultMap="AppUserVoMap">
select l.im_userid,l.username,l.wx_openid,l.unionid,l.openid,l.status,l.id_number,l.certification_status,d.*,p.name as jobTitle,buml.name as memberName from app_user_login l