| | |
| | | classInfoVo.setHeight(tStudent.getHeight()); |
| | | classInfoVo.setWeight(tStudent.getWeight()); |
| | | classInfoVo.setBmi(tStudent.getBmi()); |
| | | if (tStudent.getBmi()!=null) { |
| | | classInfoVo.setBodyStatus(BMIBodyUtil.getBodyStatus(tStudent.getBmi())); |
| | | |
| | | } |
| | | List<RegisteredCourse> courseList = new ArrayList<>(); |
| | | List<StuCourseResp> stuCoursePayment = paymentClient.getStuCoursePayment(tStudent.getId()); |
| | | List<Integer> coursePackIds = new ArrayList<>(); |
| | |
| | | course.setPeriodOfValidity(tCoursePackagePayment.getPeriodOfValidity()); |
| | | courseList.add(course); |
| | | } |
| | | |
| | | } |
| | | classInfoVo.setCourseList(courseList); |
| | | // List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); |
| | |
| | | details.add(consumeDetail); |
| | | } |
| | | } |
| | | |
| | | //8.积分商场 |
| | | |
| | | List<ConsumeDetail> consumeDetails = mcClient.getConsumeDetails(requestVo); |
| | | details.addAll(consumeDetails); |
| | | |
| | | |
| | | if (details.size() > 0 ){ |
| | | Collections.sort(details, new Comparator<ConsumeDetail>() { |
| | | @Override |
| | |
| | | switch (exchangeType.getExchangeType()){ |
| | | // 积分 |
| | | case 1: |
| | | boolean b = dealAppUserIntegral(userIdFormRedis,tAppUser,merchandise.getIntegral()); |
| | | boolean b =true; |
| | | for (int i = 0; i < goodsNums; i++) { |
| | | b = dealAppUserIntegral(userIdFormRedis,tAppUser,merchandise.getIntegral()); |
| | | } |
| | | if (b){ |
| | | switch (exchangeType.getGoodsType()){ |
| | | case 2: |
| | |
| | | break; |
| | | case 2: |
| | | // 积分+现金 |
| | | boolean dealt = dealAppUserIntegral(userIdFormRedis,tAppUser,merchandise.getIntegral()); |
| | | boolean dealt =true; |
| | | for (int i = 0; i < goodsNums; i++) { |
| | | dealt = dealAppUserIntegral(userIdFormRedis,tAppUser,merchandise.getIntegral()); |
| | | } |
| | | |
| | | switch (exchangeType.getPayType()) { |
| | | case 1: |
| | | try { |