| | |
| | | and account = #{param2} |
| | | and password = #{param3} |
| | | and is_deleted = 0 |
| | | and status = 1 |
| | | </select> |
| | | |
| | | <select id="exportUser" resultType="org.springblade.modules.system.excel.UserExcel"> |
| | |
| | | blade_dept bd |
| | | on |
| | | bu.dept_id = bd.id |
| | | left join |
| | | blade_role br |
| | | on |
| | | br.id = bu.role_id |
| | | where |
| | | bu.is_deleted = 0 |
| | | and bu.status = 1 |
| | | and bu.examination_type != 1 |
| | | and (bu.examination_type != 1 or bu.examination_type is null) |
| | | and (hold = 2 or hold = 3) |
| | | and bd.id = #{user.deptId} |
| | | and br.role_alias = '保安' |
| | | <if test="user.examType==1"> |
| | | and bu.is_apply != 1 |
| | | </if> |