| | |
| | | es.`name` AS person_name, |
| | | es.dept_id, |
| | | sd.dept_name, |
| | | eep.`name` as paper_name, |
| | | iae.`certifity`, |
| | | eep.`name` AS paper_name, |
| | | iae.`paper_student_id`, |
| | | eps.`number`, |
| | | iae.`amount`, |
| | | iae.`conclusion`, |
| | | iae.`del_flag`, |
| | |
| | | iae.`update_time` |
| | | FROM |
| | | internal_audit_evaluate iae |
| | | LEFT JOIN ex_student es ON iae.person_id = es.id |
| | | LEFT JOIN sys_dept sd ON es.dept_id = sd.dept_id |
| | | LEFT JOIN sys_company sc ON iae.company_id = sc.id |
| | | LEFT JOIN ex_paper_student eps on eps.student_id = iae.person_id and eps.number = iae.certifity |
| | | LEFT JOIN ex_exam_paper eep on eps.paper_id = eep.id |
| | | LEFT JOIN ex_student es ON iae.person_id = es.id |
| | | LEFT JOIN sys_dept sd ON es.dept_id = sd.dept_id |
| | | LEFT JOIN sys_company sc ON iae.company_id = sc.id |
| | | LEFT JOIN ex_paper_student eps ON eps.id = iae.paper_student_id |
| | | LEFT JOIN ex_exam_paper eep ON eps.paper_id = eep.id |
| | | WHERE |
| | | iae.del_flag = 1 |
| | | <if test="companyId!=null and companyId!=''"> |
| | | and iae.company_id = #{companyId} |
| | | </if> |
| | | ORDER BY |
| | | iae.create_time ASC |
| | | <if test="companyId!=null and companyId!=''"> |
| | | and iae.company_id = #{companyId} |
| | | </if> |
| | | ORDER BY |
| | | iae.create_time ASC |
| | | </select> |
| | | </mapper> |