| | |
| | | |
| | | |
| | | <select id="listPage" resultType="com.ruoyi.collaborativeApproval.dto.SealApplicationManagementDTO"> |
| | | select sam.*, su.user_name as create_user_name, d.dept_name as department |
| | | select sam.*, su.user_name as create_user_name, GROUP_CONCAT(d.dept_name SEPARATOR ',') as department, |
| | | su1.nick_name as approveUserName |
| | | from seal_application_management sam |
| | | left join sys_user su on sam.create_user = su.user_id |
| | | left join sys_user su1 on sam.approve_user_id = su1.user_id |
| | | left join sys_user_dept sud on su.user_id = sud.user_id |
| | | left join sys_dept d on sud.dept_id = d.dept_id |
| | | <where> |
| | | <if test="ew.applicationNum != null and ew.applicationNum != ''"> |
| | | and sam.application_num like concat('%',#{ew.applicationNum},'%') |
| | | </if> |
| | | <if test="ew.title != null and ew.title != ''"> |
| | | and sam.title like concat('%',#{ew.title},'%') |
| | | </if> |
| | |
| | | and sam.status = #{ew.status} |
| | | </if> |
| | | </where> |
| | | group by sam.id, sam.application_num, sam.title, sam.status, sam.create_user, sam.approve_user_id, |
| | | sam.create_time, su.user_name, su1.nick_name |
| | | </select> |
| | | </mapper> |
| | | </mapper> |