This commit is contained in:
2024-08-12 21:59:14 +08:00
parent db64368787
commit 0fa0d2b035

View File

@@ -160,7 +160,7 @@ public class EmpSalaryService extends BaseService<EmpSalaryEntity, EmpSalaryRepo
public List<String> 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<EmpSalaryEntity, EmpSalaryRepo
public List<String> 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();