“djh”
2025-12-03 e32ac074e0cdc07b7551155e2e1c24684857f2b7
multi-system/src/main/resources/mapper/system/InternalAuditEvaluateMapper.xml
@@ -11,8 +11,9 @@
            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`,
@@ -22,17 +23,17 @@
            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>