This commit is contained in:
parent
e4d1285131
commit
6f1b6940a2
|
@ -215,7 +215,7 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
|
|||
.eq(Places::getStatus, Boolean.FALSE)
|
||||
.orderByAsc(Places::getOdd));
|
||||
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()) {
|
||||
PlacesDto dto = BeanUtil.copyProperties(place, PlacesDto.class);
|
||||
dtoList.add(dto);
|
||||
|
|
Loading…
Reference in New Issue