This commit is contained in:
2024-08-28 15:38:33 +08:00
parent 1fc33cb4fc
commit 0a73e85bfc

View File

@@ -897,7 +897,7 @@ public class EmpSalaryService extends BaseService<EmpSalaryEntity, EmpSalaryRepo
private List<EmpSalaryEntity> queryHisSalary(List<String> employeesIds) {
List ids = em.createNativeQuery(
List<String> ids = em.createNativeQuery(
"""
with tmp1 as (
@@ -912,7 +912,7 @@ public class EmpSalaryService extends BaseService<EmpSalaryEntity, EmpSalaryRepo
.getResultList();
return em.createQuery(
"select s from EmpSalaryEntity s where s.employee.id in :ids",
"select s from EmpSalaryEntity s where s.id in :ids",
EmpSalaryEntity.class)
.setParameter("ids", ids)
.getResultList();