| | |
| | | </select> |
| | | |
| | | <select id="exportUser" resultType="org.springblade.modules.system.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 u.id, u.tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id, |
| | | j.dept_name as fwfw, |
| | | w.dept_name as gzd FROM blade_user u |
| | | LEFT JOIN sys_jurisdiction j on j.id = u.jurisdiction |
| | | LEFT JOIN sys_jurisdiction w on w.id = u.workjurisdiction |
| | | where 1 = 1 |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and (jurisdiction = #{user.jurisdiction} or workjurisdiction = #{user.jurisdiction}) |
| | | </if> |
| | | <if test="user.workjurisdiction!=null and user.workjurisdiction != ''"> |
| | | and workjurisdiction = #{user.workjurisdiction} |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name like concat('%',#{user.realName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <!--根据用户编号查询用户信息--> |