| | |
| | | tz_user r |
| | | ON u.user_recom=r.user_id |
| | | |
| | | where 1=1 and u.role_name in |
| | | <foreach collection="roleNames" separator="," index="index" open="(" close=")" item="r"> |
| | | #{r} |
| | | </foreach> |
| | | |
| | | <if test="checkedList!=null"> |
| | | and u.user_id in |
| | | <foreach collection="checkedList" separator="," index="index" open="(" close=")" item="r"> |
| | | #{r} |
| | | where 1=1 |
| | | <if test="roleNames != null and roleNames.size() > 0"> |
| | | AND u.role_name IN |
| | | <foreach collection="roleNames" separator="," open="(" close=")" item="r"> |
| | | #{r} |
| | | </foreach> |
| | | |
| | | </if> |
| | | |
| | | <if test="checkedList != null and checkedList.size() > 0"> |
| | | AND u.user_id IN |
| | | <foreach collection="checkedList" separator="," open="(" close=")" item="r"> |
| | | #{r} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="userCode!=null and userCode!=''"> |
| | | and u.user_code=#{userCode} |
| | | </if> |