| | |
| | | </resultMap> |
| | | |
| | | <select id="selectUserPage" resultMap="userResultMap"> |
| | | select * from blade_user where is_deleted = 0 |
| | | select * from pl_org_user where is_deleted = 0 |
| | | <if test="tenantId!=null and tenantId != ''"> |
| | | and tenant_id = #{tenantId} |
| | | </if> |
| | |
| | | SELECT |
| | | user_id |
| | | FROM |
| | | blade_user_dept |
| | | pl_org_user_dept |
| | | WHERE |
| | | dept_id IN |
| | | <foreach collection="deptIdList" index="index" item="item" open="(" separator="," close=")"> |
| | |
| | | SELECT |
| | | * |
| | | FROM |
| | | blade_user |
| | | pl_org_user |
| | | WHERE |
| | | tenant_id = #{param1} and account = #{param2} and is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="exportUser" resultType="org.springblade.system.user.excel.UserExcel"> |
| | | SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment} |
| | | SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM pl_org_user ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | </mapper> |