修改状态

This commit is contained in:
mash 2024-12-03 10:59:20 +08:00
parent 50bd5ec3b5
commit 9f855314d6
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
record.setSurplus(Math.toIntExact(places.getSum() - totalPersonnelCount)); record.setSurplus(Math.toIntExact(places.getSum() - totalPersonnelCount));
int retireeCount = personnelService.count(eq.eq(Personnel::getIsInfo, Boolean.TRUE)); int retireeCount = personnelService.count(eq.eq(Personnel::getIsInfo, Boolean.TRUE));
record.setRetiree(retireeCount); record.setRetiree(retireeCount);
eq.clear();
int whetherIsQuit = personnelService.count(eq.eq(Personnel::getWhetherIsQuit, Boolean.TRUE)); int whetherIsQuit = personnelService.count(eq.eq(Personnel::getWhetherIsQuit, Boolean.TRUE));
record.setQuit(whetherIsQuit); record.setQuit(whetherIsQuit);
} }