| | |
| | | } |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * 导入实操成绩--测试 |
| | | // * @param examScoreExcelList |
| | | // * @param isCovered 是否覆盖 |
| | | // */ |
| | | // @Override |
| | | // public void importExamScore(List<ExamScoreExcel> examScoreExcelList, Boolean isCovered) { |
| | | // if (examScoreExcelList.size()>0){ |
| | | // List<Object> errorList = new ArrayList<>(); |
| | | // //导入状态,默认为true ,如果有一个出现问题则为 false |
| | | // AtomicBoolean status = new AtomicBoolean(true); |
| | | // //遍历 |
| | | // examScoreExcelList.forEach(examScoreExcel -> { |
| | | //// 测试生成考试成绩 |
| | | // ExamScore examScore = new ExamScore(); |
| | | // examScore.setCandidateNo(examScoreExcel.getCandidateNo()); |
| | | // examScore.setQualified(2); |
| | | // //根据身份证号查询用户 |
| | | // User user = userService.getUserInfoByIdCardNo(examScoreExcel.getIdCardNo()); |
| | | // examScore.setUserId(user.getId().toString()); |
| | | // examScore.setExamId("120"); |
| | | // //根据准考证号查询报名id |
| | | // TrainingRegistration trainingRegistration = new TrainingRegistration(); |
| | | // trainingRegistration.setCandidateNo(examScoreExcel.getCandidateNo()); |
| | | // TrainingRegistration one = trainingRegistrationService.getOne(Condition.getQueryWrapper(trainingRegistration)); |
| | | // examScore.setApplyId(one.getId()); |
| | | // examScore.setLearnGrade(examScoreExcel.getLearnGrade()); |
| | | // examScore.setAllGrade(examScore.getLearnGrade()/2); |
| | | // //新增 |
| | | // this.save(examScore); |
| | | // }); |
| | | // //如果所有数据导入有一个异常 |
| | | // if (!status.get()){ |
| | | // String errorAccount = StringUtils.join(errorList, "\\\n"); |
| | | // throw new ServiceException("用户:["+errorAccount+"]实操成绩导入失败!账号与准考证号不匹配!"); |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> scoreStatistics(String deptid,String jurisdiction) { |
| | | return baseMapper.scoreStatistics(deptid,jurisdiction); |