| | |
| | | List<String> idcards = thStudyDetailVOS.stream().map(ThStudyDetailVO::getIdcard).collect(Collectors.toList()); |
| | | List<ThStudent> studentList = studentService.getNameByIdcards(idcards); |
| | | for(ThStudyDetailVO thStudyDetailVO : thStudyDetailVOS){ |
| | | //计算自然时间差 |
| | | Duration between = Duration.between(thStudyDetailVO.getStartTime(), thStudyDetailVO.getFinishTime()); |
| | | thStudyDetailVO.setDifference(between.getSeconds()); |
| | | thStudyDetailVO.setDifferenceDesc(ConvertTimeUtils.convertTimeToString(thStudyDetailVO.getDifference())); |