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 21b42d57..366ea438 100644 --- a/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java +++ b/src/main/java/cn/lihongjie/coal/empSalary/service/EmpSalaryService.java @@ -160,7 +160,7 @@ public class EmpSalaryService extends BaseService batchSelectEmpIds(IdRequest idRequest) { return em.createQuery( - "select distinct e.id from EmpSalaryEntity e where e.id not in (select s.employee.id from EmpSalaryEntity s where s.batch.id =:batchId)", + "select distinct e.id from EmployeeEntity e where e.id not in (select s.employee.id from EmpSalaryEntity s where s.batch.id =:batchId)", String.class) .setParameter("batchId", idRequest.getId()) .getResultList(); @@ -175,7 +175,7 @@ public class EmpSalaryService extends BaseService batchSelectedEmpIds(IdRequest idRequest) { return em.createQuery( - "select distinct e.id from EmpSalaryEntity e where e.id in (select s.employee.id from EmpSalaryEntity s where s.batch.id =:batchId)", + "select distinct e.id from EmployeeEntity e where e.id in (select s.employee.id from EmpSalaryEntity s where s.batch.id =:batchId)", String.class) .setParameter("batchId", idRequest.getId()) .getResultList();