src/main/resources/mapper/compensationperformance/CompensationPerformanceMapper.xml
@@ -22,4 +22,16 @@ </where> ORDER BY cp.pay_date DESC, cp.id DESC </select> <select id="exportList" resultType="com.ruoyi.compensationperformance.pojo.CompensationPerformance"> SELECT cp.*, soj.staff_name AS staffName, sp.post_name AS postName, sd.dept_name AS deptName FROM compensation_performance cp LEFT JOIN staff_on_job soj ON soj.id = cp.staff_id LEFT JOIN sys_post sp ON sp.post_id = soj.sys_post_id LEFT JOIN sys_dept sd ON sd.dept_id = soj.sys_dept_id ORDER BY cp.pay_date DESC, cp.id DESC </select> </mapper>