| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean exchangeStudyRecord(List<TStudy> studyList, Integer userId, CompleteStudyDTO completeStudy) { |
| | | public Boolean exchangeStudyRecord(TUserStudy userStudyRecord, Integer userId, CompleteStudyDTO completeStudy) { |
| | | Integer studyTime = completeStudy.getStudyTime(); |
| | | // 学习记录 |
| | | TUserStudy userStudyRecord = lambdaQuery().eq(TUserStudy::getUserId, userId) |
| | | .eq(TUserStudy::getDisabled, 0).one(); |
| | | Integer week = userStudyRecord.getWeek(); |
| | | Integer day = userStudyRecord.getDay(); |
| | | if (week.equals(completeStudy.getWeek()) && day.equals(completeStudy.getDay())) { |