diff --git a/src/main/java/club/joylink/rtss/controller/training2/TrainingV2PublishController.java b/src/main/java/club/joylink/rtss/controller/training2/TrainingV2PublishController.java index cd3c890d5..a4bd7aa69 100644 --- a/src/main/java/club/joylink/rtss/controller/training2/TrainingV2PublishController.java +++ b/src/main/java/club/joylink/rtss/controller/training2/TrainingV2PublishController.java @@ -124,8 +124,7 @@ public class TrainingV2PublishController { */ @PostMapping("/infos") public List findTrainingListInfos( - @RequestBody PublishedTrainingListRspVo vo - , + @RequestBody PublishedTrainingListRspVo vo, @RequestAttribute(name = AuthenticateInterceptor.LOGIN_INFO_KEY) LoginUserInfoVO loginUserInfoVO) { //只查询以上架 vo.setState(BusinessConsts.STATUS_USE_INT); diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2PublishService.java b/src/main/java/club/joylink/rtss/services/training2/Training2PublishService.java index a2f6323ce..77f81aa3d 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2PublishService.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2PublishService.java @@ -380,9 +380,7 @@ public class Training2PublishService { if (reqVO.getType() != null) { or.andTypeEqualTo(reqVO.getType().value()); } -// if(reqVO.getOrgId() !=null){ -// or.andOrgIdNotEqualTo(reqVO.getOrgId()); -// } + example.setOrderByClause("id desc"); List list = this.publishedDao.selectByExample(example); if (CollectionUtils.isEmpty(list)) { return List.of(); diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java index 30b755c7e..49a635a06 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java @@ -328,7 +328,6 @@ public class Training2Service { // .filter(s -> Objects.equals(s.getSimulationMember().getId(), member.getId())) .map(step -> { PaperTrainAnswerDetail detail = new PaperTrainAnswerDetail(); - detail.setMemberId(step.getSimulationMember().getId()); detail.setStepId(step.getId()); detail.setHaveRule(scoreMap.containsKey(step.getId())); detail.setRuleScore(scoreMap.get(step.getId())); diff --git a/src/main/java/club/joylink/rtss/vo/paper/PaperTrainAnswerDetail.java b/src/main/java/club/joylink/rtss/vo/paper/PaperTrainAnswerDetail.java index f36001cb7..e3157bfe9 100644 --- a/src/main/java/club/joylink/rtss/vo/paper/PaperTrainAnswerDetail.java +++ b/src/main/java/club/joylink/rtss/vo/paper/PaperTrainAnswerDetail.java @@ -40,12 +40,6 @@ public class PaperTrainAnswerDetail { */ private List clientOperations; - /** - * 步骤对应的成员的id - */ - private String memberId; - - public static class TrainOperations extends Operation2VO.ClientOperation2VO { }