diff --git a/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java b/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java index cf374cd..a5e625d 100644 --- a/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java +++ b/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java @@ -215,7 +215,7 @@ public class OrganizationServiceImpl extends BaseService().eq(Personnel::getRecruitNumber, place.getOdd()).eq(Personnel::getState, 2)); + int count = personnelService.count(new LambdaQueryWrapper().eq(Personnel::getRecruitNumber, place.getOdd()).in(Personnel::getState, 1, 2)); if (count < place.getSum()) { PlacesDto dto = BeanUtil.copyProperties(place, PlacesDto.class); dtoList.add(dto);