| | |
| | | iac.`dept_id`, |
| | | sd.dept_name, |
| | | iac.`person_id`, |
| | | es.`name` as person_name, |
| | | IFNULL(GROUP_CONCAT(DISTINCT es.`name` SEPARATOR ','), '') AS person_name, |
| | | iac.`check_time`, |
| | | iac.`start_time`, |
| | | iac.`end_time`, |
| | |
| | | FROM |
| | | `internal_audit_check` iac |
| | | LEFT JOIN sys_dept sd ON iac.dept_id = sd.dept_id |
| | | LEFT JOIN ex_student es on iac.person_id = es.id |
| | | LEFT JOIN ex_student es ON FIND_IN_SET(es.`id`, iac.`person_id`) |
| | | WHERE |
| | | iac.del_flag = 0 |
| | | <if test="companyId!=null"> |
| | | and iac.company_id = #{companyId} |
| | | </if> |
| | | GROUP BY iac.`id` |
| | | ORDER BY |
| | | iac.create_time DESC |
| | | </select> |