This commit is contained in:
mash 2024-12-02 09:14:51 +08:00
parent e4d1285131
commit 6f1b6940a2
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
.eq(Places::getStatus, Boolean.FALSE) .eq(Places::getStatus, Boolean.FALSE)
.orderByAsc(Places::getOdd)); .orderByAsc(Places::getOdd));
for (Places place : places) { for (Places place : places) {
int count = personnelService.count(new LambdaQueryWrapper<Personnel>().eq(Personnel::getRecruitNumber, place.getOdd()).eq(Personnel::getState, 2)); int count = personnelService.count(new LambdaQueryWrapper<Personnel>().eq(Personnel::getRecruitNumber, place.getOdd()).in(Personnel::getState, 1, 2));
if (count < place.getSum()) { if (count < place.getSum()) {
PlacesDto dto = BeanUtil.copyProperties(place, PlacesDto.class); PlacesDto dto = BeanUtil.copyProperties(place, PlacesDto.class);
dtoList.add(dto); dtoList.add(dto);