修改导入模板
This commit is contained in:
parent
109ac5d32e
commit
7e66fc3ca9
|
@ -790,8 +790,10 @@ 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()) {
|
||||
failMsgVO.setFailMsg("招聘名额已用完!");
|
||||
if (pOptional.isPresent() && placesOptional.isPresent()) {
|
||||
if (pOptional.get() >= placesOptional.get().getSum()) {
|
||||
failMsgVO.setFailMsg("招聘名额已用完!");
|
||||
}
|
||||
}
|
||||
|
||||
return failMsgVO;
|
||||
|
|
Loading…
Reference in New Issue