From 0fa0d2b035f3d76dd9b6b575fbd65d361e9960f4 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Mon, 12 Aug 2024 21:59:14 +0800 Subject: [PATCH] bugfix --- .../cn/lihongjie/coal/empSalary/service/EmpSalaryService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();