diff --git a/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java b/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java index b0ad1524..0da74f5e 100644 --- a/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java +++ b/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java @@ -298,7 +298,8 @@ public class EmpSalaryService extends BaseService queryHisSalary(List employeesIds) { - List ids = em.createNativeQuery( - """ + List ids = + em.createNativeQuery( + """ with tmp1 as ( select s.id, rank() over (partition by employee_id order by batch_year_month desc ) rk from t_emp_salary s where s.employee_id in :ids @@ -868,13 +886,12 @@ public class EmpSalaryService extends BaseService