| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.account.entity.Coach; |
| | | import com.dsh.account.entity.TAppUser; |
| | | import com.dsh.account.entity.TStudent; |
| | | import com.dsh.account.feignclient.activity.IntroduceRewardsClient; |
| | |
| | | import com.dsh.account.feignclient.other.model.StoreInfo; |
| | | import com.dsh.account.feignclient.other.model.StoreLonLatList; |
| | | import com.dsh.account.feignclient.other.model.SysNotice; |
| | | import com.dsh.account.mapper.CoachMapper; |
| | | import com.dsh.account.mapper.TAppUserMapper; |
| | | import com.dsh.account.mapper.TStudentMapper; |
| | | import com.dsh.account.model.vo.classDetails.ClasspaymentRequest; |
| | | 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.service.TStudentService; |
| | | import com.dsh.account.util.DateTimeHelper; |
| | | import com.dsh.account.util.DateUtil; |
| | | import com.dsh.account.util.ResultUtil; |
| | | import com.dsh.account.util.ToolUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Autowired |
| | | private TAppUserMapper tauMapper; |
| | | |
| | | @Autowired |
| | | private CoachMapper coachMapper; |
| | | |
| | | @Override |
| | | public void addStuOfAppUser(StuDetailsReq stu,Integer appUserId) { |
| | |
| | | CourseDetailsOfContinuationResp resp = new CourseDetailsOfContinuationResp(); |
| | | |
| | | StudentOfCourseVo studentCourse = couPayClient.getStudentCourse(lessonId,stuId,appUserId); |
| | | resp.setCoursePackageId(studentCourse.getCoursePackageId()); |
| | | resp.setStuId(stuId); |
| | | resp.setPackageImg(studentCourse.getPackageImg()); |
| | | resp.setCourseName(studentCourse.getCourseName()); |
| | | Coach coach = coachMapper.selectById(studentCourse.getCoachId()); |
| | | resp.setTeacherName(coach.getName()); |
| | | resp.setCourseWeek(studentCourse.getCourseWeek()); |
| | | resp.setCourseTime(studentCourse.getCourseTime()); |
| | | |
| | | StoreDetailOfCourse courseOfStore = storeClient.getCourseOfStore(studentCourse.getStoreId()); |
| | | resp.setStoreName(courseOfStore.getStoreName()); |
| | | resp.setStoreAddr(courseOfStore.getStoreAddr()); |
| | | |
| | | resp.setTypeList(studentCourse.getTypeList()); |
| | | TStudent tStudent = this.baseMapper.selectById(stuId); |
| | | resp.setStuName(tStudent.getName()); |
| | | resp.setStuPhone(tStudent.getPhone()); |
| | | resp.setStuAge(DateUtil.age(tStudent.getBirthday())); |
| | | resp.setAmount(studentCourse.getAmount()); |
| | | resp.setVipAmount(studentCourse.getVipAmount()); |
| | | resp.setWpGold(studentCourse.getWpGold()); |
| | | return resp; |
| | | } |
| | | |
| | |
| | | return purchaseRecords; |
| | | } |
| | | |
| | | @Override |
| | | public ResultUtil renewClassPayment(Integer userIdFormRedis, ClasspaymentRequest request) { |
| | | // TODO: 2023/7/5 |
| | | switch (request.getPayType()){ |
| | | case 1: |
| | | WeChatPayment(); |
| | | break; |
| | | case 2: |
| | | AlipayPayment(); |
| | | break; |
| | | case 3: |
| | | PlaypaiGoldPayment(); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | public void WeChatPayment(){ |
| | | |
| | | } |
| | | |
| | | public void AlipayPayment(){ |
| | | |
| | | } |
| | | |
| | | public void PlaypaiGoldPayment(){ |
| | | |
| | | } |
| | | |
| | | |
| | | } |