| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | private SiteClient stClient; |
| | | |
| | | @Override |
| | | public ClassInfoVo queryUserOfStus(Integer id,String latitude,String longitude) { |
| | | public ClassInfoVo queryUserOfStus(Integer id) { |
| | | TAppUser tAppUser = this.baseMapper.selectById(id); |
| | | ClassInfoVo classInfoVo = new ClassInfoVo(); |
| | | if (ToolUtil.isNotEmpty(tAppUser)){ |
| | |
| | | classInfoVo.setHeight(tStudent.getHeight()); |
| | | classInfoVo.setWeight(tStudent.getWeight()); |
| | | classInfoVo.setBmi(tStudent.getBmi()); |
| | | classInfoVo.setBodyStatus(BMIBodyUtil.getBodyStatus(tStudent.getBmi())); |
| | | |
| | | List<RegisteredCourse> courseList = new ArrayList<>(); |
| | | // 总学时数 |
| | |
| | | classInfoVo.setDeductedNums(deduct); |
| | | classInfoVo.setRemainingNums(remain); |
| | | |
| | | List<CourseOfStoreVo> storeOfCourses = paymentClient.getStoreOfCourses(); |
| | | classInfoVo.setWeekCourseList(dealDatas(storeOfCourses,longitude,latitude)); |
| | | |
| | | List<ExerciseVideo> videos = new ArrayList<>(); |
| | | |
| | | classInfoVo.setExerciseVideoList(videos); |
| | |
| | | * @param latitude |
| | | * @return |
| | | */ |
| | | public List<WeekedCourse> dealDatas(List<CourseOfStoreVo> storeOfCourses,String longitude ,@RequestBody String latitude){ |
| | | public List<WeekedCourse> dealDatas(List<CourseOfStoreVo> storeOfCourses, String longitude , String latitude){ |
| | | List<WeekedCourse> weekedCourses = new ArrayList<>(); |
| | | for (int i = 1; i < 8; i++) { |
| | | WeekedCourse weekedCourse = new WeekedCourse(); |
| | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<CourseVenue> queryWeekOfCourseDetails(Integer appUserId ,Integer stuId, String time,String longitude,String latitude) { |
| | | WeeksOfCourseRest weeksOfCourseRest = new WeeksOfCourseRest(); |
| | | weeksOfCourseRest.setTime(time); |
| | | weeksOfCourseRest.setStuId(stuId); |
| | | weeksOfCourseRest.setAppUserId(appUserId); |
| | | paymentClient.getStoreOfCourses(weeksOfCourseRest); |
| | | // TODO: 2023/7/20 查询课包周课包列表 |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |