From 7eb2ee47373689d01483f2c9370bc3f3690e0c41 Mon Sep 17 00:00:00 2001 From: Proxy Developer Date: Sun, 19 Jan 2025 10:13:58 +0000 Subject: [PATCH] Proxy Dev: remove duplicates per salary --- .../java/io/perfana/afterburner/mybatis/EmployeeMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afterburner-java/src/main/java/io/perfana/afterburner/mybatis/EmployeeMapper.java b/afterburner-java/src/main/java/io/perfana/afterburner/mybatis/EmployeeMapper.java index 5ce73b3..acf4d5d 100644 --- a/afterburner-java/src/main/java/io/perfana/afterburner/mybatis/EmployeeMapper.java +++ b/afterburner-java/src/main/java/io/perfana/afterburner/mybatis/EmployeeMapper.java @@ -43,7 +43,7 @@ public interface EmployeeMapper { " JOIN employees em ON dm.emp_no = em.emp_no" + " WHERE em.last_name = #{lastName}" + " AND dm.to_date = (SELECT MAX(to_date) FROM dept_manager WHERE dept_no = dm.dept_no) " + - ") limit 200;" + " AND s.to_date = (SELECT MAX(to_date) FROM salaries WHERE emp_no = em.emp_no)) limit 200;" ) List findEmployeesByManagerLastName(@Param("lastName") String lastName);