| | |
| | | <if test="companyId!=null and companyId!=''"> |
| | | and iac.company_id = #{companyId} |
| | | </if> |
| | | <if test="year!=null and year!=''"> |
| | | and iac.year = #{year} |
| | | </if> |
| | | ORDER BY iac.create_time ASC |
| | | </select> |
| | | <select id="selectCarryDeptList" resultType="com.gkhy.exam.system.domain.InternalAuditCarryDept"> |
| | |
| | | iacd.`start_time`, |
| | | iacd.`end_time`, |
| | | iacd.`check_id` , |
| | | su.`name` as check_name |
| | | IFNULL(GROUP_CONCAT(DISTINCT es.`name` SEPARATOR ','), '') AS check_name |
| | | FROM |
| | | internal_audit_carry_dept iacd |
| | | LEFT JOIN sys_user su on iacd.check_id = su.id |
| | | left join sys_dept sd on iacd.dept_id = sd.dept_id |
| | | LEFT JOIN ex_student es ON FIND_IN_SET(es.`id`, iacd.`check_id`) |
| | | WHERE iacd.carry_id = #{carryId} |
| | | GROUP BY iacd.`id`; |
| | | </select> |
| | | </mapper> |