From 6f1b6940a2328af479852882da94d3af2f00da85 Mon Sep 17 00:00:00 2001 From: mash Date: Mon, 2 Dec 2024 09:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ydool/staff/service/impl/OrganizationServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);