| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.account.entity.TAppUser; |
| | | import com.dsh.account.entity.TStudent; |
| | | import com.dsh.account.enums.WeeksEnum; |
| | | import com.dsh.account.feignclient.course.CoursePaymentClient; |
| | | import com.dsh.account.feignclient.course.model.CourseOfStoreVo; |
| | | import com.dsh.account.feignclient.course.model.StuCourseResp; |
| | |
| | | .eq("isDefault",1)); |
| | | if (tStudents.size() > 0 ){ |
| | | TStudent tStudent = tStudents.get(0); |
| | | classInfoVo.setStuId(tStudent.getId()); |
| | | classInfoVo.setIsThere(1); |
| | | classInfoVo.setStuImg(tStudent.getHeadImg()); |
| | | classInfoVo.setStuSex(tStudent.getSex()); |
| | |
| | | */ |
| | | public List<WeekedCourse> dealDatas(List<CourseOfStoreVo> storeOfCourses,String longitude ,String latitude){ |
| | | List<WeekedCourse> weekedCourses = new ArrayList<>(); |
| | | int weekStr = LocalDateTimeUtils.getWeekStr(); |
| | | for (int i = 1; i < 8; i++) { |
| | | WeekedCourse weekedCourse = new WeekedCourse(); |
| | | weekedCourse.setWeekNum(i); |
| | | weekedCourse.setWeekStr(WeeksEnum.getStr(i)); |
| | | String weekOfDays = LocalDateTimeUtils.getWeekOfDays(i); |
| | | weekedCourse.setDayStr(weekOfDays); |
| | | List<CourseVenue> courseVenues = new ArrayList<>(); |
| | | if (weekStr == i) { |
| | | weekedCourse.setIsToday(1); |
| | | } else { |
| | | weekedCourse.setIsToday(2); |
| | | } |
| | | Map<Integer, List<CourseOfStoreVo>> map = storeOfCourses.stream().collect(Collectors.groupingBy(CourseOfStoreVo::getStoreId)); |
| | | for (Map.Entry<Integer, List<CourseOfStoreVo>> integerListEntry : map.entrySet()) { |
| | | List<CourseOfStoreVo> value = integerListEntry.getValue(); |