|  |  |  | 
|---|
|  |  |  | and su.user_id not in (select asu.sys_user_id from ard_sy_user asu) | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectArdSyUserByUsersId" resultType="java.util.Map" parameterType="java.lang.Integer" > | 
|---|
|  |  |  | select asu.id,asu.user_id as userId,asu.password, | 
|---|
|  |  |  | aus.users_id as usersId,au.name from ard_sy_user asu | 
|---|
|  |  |  | inner join ard_users_sy aus on asu.id = aus.sy_user_id | 
|---|
|  |  |  | inner join ard_users au on aus.users_id = au.id | 
|---|
|  |  |  | where aus.users_id = #{usersId} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="userById" parameterType="String" resultMap="ArdSyUserResult"> | 
|---|
|  |  |  | <include refid="selectArdSyUserVo"/> | 
|---|
|  |  |  | where sys_user_id = #{id} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="selectSyUser" resultMap="ArdSyUserResult"> | 
|---|
|  |  |  | select distinct asu.user_id,asu.password from ard_sy_user asu | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </mapper> | 
|---|