| | |
| | | item += studyListen.getSubject().split(",").length; |
| | | } |
| | | int i = (int) (((double) schedule / item) * 100); |
| | | if (i > userStudy.getListen()) { |
| | | userStudy.setListen(i); |
| | | } |
| | | } |
| | | } |
| | | } else if (Constants.TWO.equals(type)) { |
| | |
| | | if (!lookList.isEmpty()) { |
| | | int item = lookList.size(); |
| | | int i = (int) (((double) schedule / item) * 100); |
| | | if (i > userStudy.getLook()) { |
| | | userStudy.setLook(i); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if (!inductionList.isEmpty()) { |
| | | int item = inductionList.size(); |
| | | int i = (int) (((double) schedule / item) * 100); |
| | | if (i > userStudy.getInduction()) { |
| | | userStudy.setInduction(i); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | List<TStudyAnswer> answerList = studyAnswerService.questionsAndAnswers(quarter, week, day); |
| | | if (answerList.size() % Constants.TWO == Constants.ZERO) { |
| | | int i = (int) (((double) schedule / (answerList.size() / 2)) * 100); |
| | | if (i > userStudy.getAnswer()) { |
| | | userStudy.setAnswer(i); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if (!pairList.isEmpty()) { |
| | | int item = pairList.size(); |
| | | int i = (int) (((double) schedule / item) * 100); |
| | | if (i > userStudy.getPair()) { |
| | | userStudy.setPair(i); |
| | | } |
| | | } |
| | | } |
| | | } |