修改导入模板

This commit is contained in:
mash 2024-11-12 17:29:10 +08:00
parent 109ac5d32e
commit 7e66fc3ca9
1 changed files with 4 additions and 2 deletions

View File

@ -790,9 +790,11 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
Optional<Integer> pOptional = Optional.ofNullable(personnelMapper.selectCount(Wrappers.lambdaQuery(Personnel.class).eq(Personnel::getRecruitNumber, personnelExportVO.getRecruitNumber())));
Optional<Places> placesOptional = Optional.ofNullable(placesMapper.selectOne(Wrappers.lambdaQuery(Places.class).eq(Places::getOdd, personnelExportVO.getRecruitNumber())));
if (pOptional.isPresent() && placesOptional.isPresent() && pOptional.get() > placesOptional.get().getSum()) {
if (pOptional.isPresent() && placesOptional.isPresent()) {
if (pOptional.get() >= placesOptional.get().getSum()) {
failMsgVO.setFailMsg("招聘名额已用完!");
}
}
return failMsgVO;
}