| | |
| | | LEFT JOIN jfpt.sys_position p ON p.snumber = s.CODE |
| | | LEFT JOIN jfpt.sys_enclosure e ON e.anumber = s.CODE |
| | | |
| | | where is_deleted = 0 |
| | | <if test="tenantId!=null and tenantId != ''"> |
| | | and tenant_id = #{tenantId} |
| | | </if> |
| | | <if test="user.tenantId!=null and user.tenantId != ''"> |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | | where s.is_deleted = 0 |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | and s.account = #{user.account} |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and s.real_name = #{user.realName} |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |
| | | and s.user_type = #{user.userType} |
| | | </if> |
| | | <if test="deptIdList!=null and deptIdList.size>0"> |
| | | and id in ( |
| | | and s.id in ( |
| | | SELECT |
| | | user_id |
| | | FROM |