updates 网页端限制志愿填报数量35个

This commit is contained in:
zhouwentao 2024-06-26 17:17:22 +08:00
parent 9001d70b6d
commit 0fea2ca6ae
1 changed files with 3 additions and 0 deletions

View File

@ -447,6 +447,9 @@ public class YxVolunteerServiceImpl extends ServiceImpl<YxVolunteerMapper, YxVol
String volunteerId = activeByCreateVolunteerDto.getId();
YxCalculationMajor calculationMajor = null;
for (YxVolunteerRecord yxVolunteerRecord : volunteerRecordList) {
if (yxVolunteerRecord.getIndexs()>35) {
throw new JeecgBootException("各批次仅可加35个志愿");
}
//判断有没有专业Id
if (StringUtils.isBlank(yxVolunteerRecord.getCalculationMajorId())) {
continue;