单操考试调整

This commit is contained in:
tiger_zhou 2023-02-08 15:16:10 +08:00
parent 1a1d67bc5c
commit 661d09ea3f
2 changed files with 4 additions and 3 deletions

View File

@ -68,9 +68,10 @@ public class PaperUserCreateService {
pu.setStatus(false); pu.setStatus(false);
example.createCriteria().andIdIn(idList); example.createCriteria().andIdIn(idList);
this.paperUserDAO.updateByExampleSelective(pu,example);*/ this.paperUserDAO.updateByExampleSelective(pu,example);*/
PaperUserExample paperUserExample = new PaperUserExample(); /*PaperUserExample paperUserExample = new PaperUserExample();
paperUserExample.createCriteria().andIdIn(idList); paperUserExample.createCriteria().andIdIn(idList);
this.paperUserDAO.deleteByExample(paperUserExample); this.paperUserDAO.deleteByExample(paperUserExample);*/
this.deletePaperUserQuestion(idList); this.deletePaperUserQuestion(idList);
} }

View File

@ -122,7 +122,7 @@ public class PaperUserSubmitAnswerService {
return new TrainAnswerVO(PaperQuestionState.Undo, Collections.EMPTY_LIST); return new TrainAnswerVO(PaperQuestionState.Undo, Collections.EMPTY_LIST);
} }
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(detailVO),String.format("未找到对应的实训数据[%s]",reqVo.getPqId())); BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(detailVO),String.format("未找到对应的实训数据[%s]",reqVo.getPqId()));
List<Step2VO> stepList = JsonUtils.readCollection(detailVO.getStepJson(), Step2VO.class); List<Step2VO> stepList = JsonUtils.readCollection(detailVO.getStepJson(),ArrayList.class, Step2VO.class);
Map<Long,PaperTrainAnswerDetail> stepMapper = reqVo.getTrainDetail().stream().collect(Collectors.toMap(d->d.getStepId(), Function.identity(),(v1,v2)->v1)); Map<Long,PaperTrainAnswerDetail> stepMapper = reqVo.getTrainDetail().stream().collect(Collectors.toMap(d->d.getStepId(), Function.identity(),(v1,v2)->v1));