diff --git a/src/main/java/club/joylink/rtss/services/paper/PaperUserCreateService.java b/src/main/java/club/joylink/rtss/services/paper/PaperUserCreateService.java index 988f400f1..15c556a8b 100644 --- a/src/main/java/club/joylink/rtss/services/paper/PaperUserCreateService.java +++ b/src/main/java/club/joylink/rtss/services/paper/PaperUserCreateService.java @@ -68,9 +68,10 @@ public class PaperUserCreateService { pu.setStatus(false); example.createCriteria().andIdIn(idList); this.paperUserDAO.updateByExampleSelective(pu,example);*/ - PaperUserExample paperUserExample = new PaperUserExample(); + /*PaperUserExample paperUserExample = new PaperUserExample(); paperUserExample.createCriteria().andIdIn(idList); - this.paperUserDAO.deleteByExample(paperUserExample); + this.paperUserDAO.deleteByExample(paperUserExample);*/ + this.deletePaperUserQuestion(idList); } diff --git a/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java b/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java index c786bc31a..1a9257d3c 100644 --- a/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java +++ b/src/main/java/club/joylink/rtss/services/paper/PaperUserSubmitAnswerService.java @@ -122,7 +122,7 @@ public class PaperUserSubmitAnswerService { return new TrainAnswerVO(PaperQuestionState.Undo, Collections.EMPTY_LIST); } BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(detailVO),String.format("未找到对应的实训数据[%s]",reqVo.getPqId())); - List stepList = JsonUtils.readCollection(detailVO.getStepJson(), Step2VO.class); + List stepList = JsonUtils.readCollection(detailVO.getStepJson(),ArrayList.class, Step2VO.class); Map stepMapper = reqVo.getTrainDetail().stream().collect(Collectors.toMap(d->d.getStepId(), Function.identity(),(v1,v2)->v1));