|
|
@@ -279,7 +279,7 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
this.updateById(update);
|
|
|
|
|
|
- if (update.getApplyNature() == 2) {
|
|
|
+ if (ObjectUtils.isNotNull(update.getApplyNature()) && update.getApplyNature() == 2) {
|
|
|
//专场预约学员
|
|
|
iExamApplyUserService.remove(new LambdaQueryWrapper<ExamApplyUser>().eq(ExamApplyUser::getApplyId, update.getApplyId()));
|
|
|
if (StringUtils.isNotBlank(bo.getNatureUrl())) {
|
|
|
@@ -593,10 +593,12 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
List<ExamApplySiteTimeTwoVo> examApplySiteTimeTwoVos = JSONArray.parseArray(item.getSiteTime(), ExamApplySiteTimeTwoVo.class);
|
|
|
if (ObjectUtils.isNotNull(examApplySiteTimeTwoVos)) {
|
|
|
ExamApplySiteTimeTwoVo timeTwoVo = examApplySiteTimeTwoVos.stream().findFirst().orElse(null);
|
|
|
+ ExamApplySite applySite = iExamApplySiteService.getById(item.getApplySiteId());
|
|
|
//预约人数
|
|
|
int count = iUserSubscribeService.count(new LambdaQueryWrapper<UserSubscribe>()
|
|
|
.eq(UserSubscribe::getApplyId, item.getApplyId())
|
|
|
- .eq(UserSubscribe::getSiteId, item.getApplySiteId())
|
|
|
+ .eq(UserSubscribe::getSiteId, applySite.getSiteId())
|
|
|
+ .eq(UserSubscribe::getSubscribeStatus, 1)
|
|
|
.eq(UserSubscribe::getApplySiteStartTime, timeTwoVo.getStartTime())
|
|
|
.eq(UserSubscribe::getApplySiteEndTime, timeTwoVo.getEndTime()));
|
|
|
item.setPeople(count);
|