|
|
@@ -1150,6 +1150,27 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
return baseMapper.getUserProfileList(idCard,businessName,major);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean updateApplyNum(UpdateApplyNumBo bo) {
|
|
|
+ ExamApply apply = getById(bo.getApplyId());
|
|
|
+ if (ObjectUtils.isNull(apply)){
|
|
|
+ throw new CustomException("考试信息获取有误!");
|
|
|
+ }
|
|
|
+ List<ExamApplySiteTime> siteTimeList = iExamApplySiteTimeService
|
|
|
+ .list(new LambdaQueryWrapper<ExamApplySiteTime>().eq(ExamApplySiteTime::getApplyId, bo.getApplyId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(siteTimeList)){
|
|
|
+ siteTimeList.forEach(item -> {
|
|
|
+ List<ExamApplySiteTimeTwoAddBo> siteTimeTwoAddBos = JSONArray.parseArray(item.getSiteTime(), ExamApplySiteTimeTwoAddBo.class);
|
|
|
+ if (CollectionUtils.isNotEmpty(siteTimeTwoAddBos)){
|
|
|
+ siteTimeTwoAddBos.forEach(x -> x.setNum(bo.getNum().longValue()));
|
|
|
+ String s = JSONArray.toJSONString(siteTimeTwoAddBos);
|
|
|
+ item.setSiteTime(s);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return iExamApplySiteTimeService.updateBatchById(siteTimeList);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String examUserProfileExport(UserProfileQueryBo bo) {
|
|
|
List<UserProfileVo> userProfileVos = iUserProfileService.queryList(bo);
|