| | |
| | | import com.dsh.account.feignclient.competition.model.GetStuSourseList; |
| | | import com.dsh.account.feignclient.competition.model.PurchaseRecordVo; |
| | | import com.dsh.account.feignclient.competition.model.SaveParticipant; |
| | | import com.dsh.account.feignclient.course.CancelListClient; |
| | | import com.dsh.account.feignclient.course.CoursePaymentClient; |
| | | import com.dsh.account.feignclient.course.CourseRecordClient; |
| | | import com.dsh.account.feignclient.course.CourseSessionNameClient; |
| | | import com.dsh.account.feignclient.course.*; |
| | | import com.dsh.account.feignclient.course.model.*; |
| | | import com.dsh.account.feignclient.other.NoticeClient; |
| | | import com.dsh.account.feignclient.other.QuestionClient; |
| | | import com.dsh.account.feignclient.other.SiteClient; |
| | | import com.dsh.account.feignclient.other.StoreClient; |
| | | import com.dsh.account.feignclient.other.model.*; |
| | | import com.dsh.account.mapper.CoachMapper; |
| | |
| | | import com.dsh.account.model.vo.classDetails.classInsVo.ClassDetailsInsVo; |
| | | import com.dsh.account.model.vo.classDetails.classInsVo.StuDetailsReq; |
| | | import com.dsh.account.model.vo.classDetails.classInsVo.StuListVo; |
| | | import com.dsh.account.model.vo.exploreDetail.ExploreDatasVo; |
| | | import com.dsh.account.model.vo.exploreDetail.LonLatRequest; |
| | | import com.dsh.account.model.vo.exploreDetails.QuestionDetailsVo; |
| | | import com.dsh.account.model.vo.exploreDetails.QuestionIns; |
| | | import com.dsh.account.model.vo.exploreDetail.QuestionIns; |
| | | import com.dsh.account.model.vo.exploreDetail.StoreDetailsVo; |
| | | import com.dsh.account.model.vo.sourceDetail.CouponStuAvailableVo; |
| | | import com.dsh.account.model.vo.sourceDetail.CourseDetailsOfContinuationResp; |
| | | import com.dsh.account.model.vo.sourceDetail.RecordTimeRequest; |
| | |
| | | private PayMoneyUtil payMoneyUtil; |
| | | |
| | | |
| | | @Resource |
| | | private SiteClient steClient; |
| | | |
| | | @Resource |
| | | private CourseListClient culisClient; |
| | | |
| | | |
| | | |
| | | @Override |
| | |
| | | student.setPhone(ToolUtil.isNotEmpty(stu.getPhone()) ? stu.getPhone() : ""); |
| | | student.setSex(stu.getSex()); |
| | | student.setIdCard(ToolUtil.isNotEmpty(stu.getIdCard())?stu.getIdCard() : ""); |
| | | student.setBirthday(new Date(stu.getBirthday())); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | student.setBirthday(sdf.parse(stu.getBirthday())); |
| | | student.setHeight(stu.getHeight()); |
| | | student.setWeight(stu.getWeight()); |
| | | BigDecimal bigDecimal = BigDecimal.valueOf(stu.getWeight()); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public QuestionDetailsVo queryQuestionData() { |
| | | public List<QuestionIns> queryQuestionData() { |
| | | return quesClient.getSysQuestionDetails(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ExploreDatasVo queryIndexOfExplores(LonLatRequest llrequest) { |
| | | ExploreDatasVo datasVo = new ExploreDatasVo(); |
| | | public List<StoreInfo> queryIndexOfExplores(LonLatRequest llrequest) { |
| | | GetAllNearbyStoreList getAllNearbyStoreList = new GetAllNearbyStoreList(); |
| | | getAllNearbyStoreList.setLongitude(llrequest.getLongitude()); |
| | | getAllNearbyStoreList.setLatitude(llrequest.getLatitude()); |
| | | List<StoreInfo> allNearbyStoreList = storeClient.getAllNearbyStoreList(getAllNearbyStoreList); |
| | | List<StoreLonLatList> allStoreLonLats = storeClient.getAllStoreLonLats(getAllNearbyStoreList); |
| | | datasVo.setStoreLists(allNearbyStoreList); |
| | | datasVo.setLonLatLists(allStoreLonLats); |
| | | return datasVo; |
| | | return storeClient.getAllNearbyStoreList(getAllNearbyStoreList); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | public ResultUtil AlipayPayment(String code,BigDecimal amount){ |
| | | ResultUtil alipay = payMoneyUtil.alipay("课包续费", "", "", code, amount.toString(), |
| | | ResultUtil alipay = payMoneyUtil.alipay("课包续费", "课包续费", "", code, amount.toString(), |
| | | "/base/coursePackage/alipayPaymentCallback"); |
| | | if(alipay.getCode() == 200){ |
| | | new Thread(new Runnable() { |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<StoreDetailList> queryStoreList(Integer space,String cityCode,String latitude,String longitude) { |
| | | StoreOfCitycodeResp citycodeResp = new StoreOfCitycodeResp(); |
| | | citycodeResp.setSpace(space); |
| | | citycodeResp.setCityCode(cityCode); |
| | | citycodeResp.setLongitude(latitude); |
| | | citycodeResp.setLatitude(longitude); |
| | | return storeClient.getQueryStoreList(citycodeResp); |
| | | } |
| | | |
| | | @Override |
| | | public StoreDetailsVo getStoreDetail(Integer storeId) { |
| | | Store store = storeClient.queryStoreById(storeId); |
| | | StoreDetailsVo detailsVo = new StoreDetailsVo(); |
| | | String realPicture = store.getRealPicture(); |
| | | String[] split = realPicture.split(","); |
| | | detailsVo.setImages(Arrays.asList(split)); |
| | | detailsVo.setStoreId(store.getId()); |
| | | detailsVo.setStoreName(store.getName()); |
| | | detailsVo.setStoreAddress(store.getAddress()); |
| | | detailsVo.setStoreTime(store.getStartTime() + "至" +store.getEndTime()); |
| | | detailsVo.setStoreInfo(store.getIntroduce()); |
| | | detailsVo.setLon(store.getLon()); |
| | | detailsVo.setLat(store.getLat()); |
| | | detailsVo.setPhone(store.getPhone()); |
| | | detailsVo.setVenueList(steClient.getAppUserSiteList()); |
| | | detailsVo.setCourseVoList(culisClient.getStoreOfCourseList(storeId)); |
| | | return detailsVo; |
| | | } |
| | | |
| | | |
| | | } |