| | |
| | | select count(user_id) from automessage_sys_user |
| | | <where> |
| | | <if test="userName != null and userName != ''"> |
| | | AND user_name like concat('%', #{userName}, '%') |
| | | AND user_name like concat('%', #{userName}, '%') or |
| | | (department_id in (SELECT id FROM automessage_organization_chart |
| | | WHERE organization_name like concat('%', #{userName}, '%'))) |
| | | |
| | | </if> |
| | | <if test="userType != null and userType != ''"> |
| | | AND user_type=#{userType} |
| | |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | | <if test="userName != null and userName != ''"> |
| | | AND user_name like concat('%', #{userName}, '%') |
| | | AND user_name like concat('%', #{userName}, '%') or |
| | | (department_id in (SELECT id FROM automessage_organization_chart |
| | | WHERE organization_name like concat('%', #{userName}, '%'))) |
| | | |
| | | </if> |
| | | <if test="userType != null and userType != ''"> |
| | | AND user_type=#{userType} |