|  |  |  | 
|---|
|  |  |  | <if test="signDate != null and signDate !='' "> | 
|---|
|  |  |  | sign_date = #{signDate} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openIds != null and openIds !='' "> | 
|---|
|  |  |  | open_ids = #{openIds} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </set> | 
|---|
|  |  |  | WHERE su_id=#{suId} | 
|---|
|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectUserByOpenId" resultMap="SysUsersMap"> | 
|---|
|  |  |  | select * from sys_users where find_in_set(#{openId}, open_ids) | 
|---|
|  |  |  | select *, | 
|---|
|  |  |  | (select GROUP_CONCAT(role_name separator ',') from sys_role where find_in_set(role_id,role_ids) ) roleName | 
|---|
|  |  |  | from sys_users where find_in_set(#{openId}, open_ids) | 
|---|
|  |  |  | <if test="companyId != null"> | 
|---|
|  |  |  | and company_id=#{companyId} | 
|---|
|  |  |  | </if> | 
|---|