| | |
| | | package com.dsh.course.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.course.entity.PacQueryDto; |
| | | import com.dsh.course.entity.TCoursePackagePayment; |
| | | import com.dsh.course.entity.dto.StudentQeryDto; |
| | | import com.dsh.course.feignclient.model.RecordAppoint; |
| | | import com.dsh.course.model.*; |
| | | import com.dsh.course.model.vo.RegisterCourseVo; |
| | | import com.dsh.course.model.vo.request.ClasspaymentRequest; |
| | | import com.dsh.course.model.vo.request.CourseOfAfterRequest; |
| | | import com.dsh.course.model.vo.request.CourseWithDetailsRequest; |
| | | import com.dsh.course.model.vo.request.UpdateCourseVideoStatusRequest; |
| | | import com.dsh.course.model.vo.response.AppUserVideoResponse; |
| | | import com.dsh.course.model.vo.response.CourseDetailsResponse; |
| | | import com.dsh.course.model.vo.response.CourseOfVideoResponse; |
| | | import com.dsh.course.model.vo.request.*; |
| | | import com.dsh.course.model.vo.response.*; |
| | | import com.dsh.course.util.ResultUtil; |
| | | import io.swagger.models.auth.In; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TCoursePackagePaymentService extends IService<TCoursePackagePayment> { |
| | | |
| | | List<TCoursePackagePayment> queryAllCoursePackage(Date startTime, Date endTime , Integer lessionId, Integer stuId, Integer appUserId); |
| | | |
| | | |
| | | /** |
| | | * 获取课程购买人数 |
| | | * |
| | | * @param coursePackageId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询课包发布的课后视频列表 |
| | | * |
| | | * @param search |
| | | * @param courseIds |
| | | * @return |
| | | */ |
| | | List<AppUserVideoResponse> queryAfterVideo(CourseOfAfterRequest search,List<Integer> courseIds); |
| | | List<AppUserVideoResponse> queryAfterVideo(CourseOfAfterRequest search, List<Integer> courseIds); |
| | | |
| | | /** |
| | | * 获取课后视频详情 |
| | | * |
| | | * @param detailsRequest |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | CourseOfVideoResponse queryVideoDetails(CourseWithDetailsRequest detailsRequest,Integer appUserId); |
| | | CourseOfVideoResponse queryVideoDetails(CourseWithDetailsRequest detailsRequest, Integer appUserId); |
| | | |
| | | /** |
| | | * 更新视频学习状态 |
| | | * |
| | | * @param detailsRequest |
| | | * @param appUserId |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取用户已报名课程 |
| | | * |
| | | * @param courseTypeId |
| | | * @param appUserId |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取已报名课包详情 |
| | | * @param coursePackageId |
| | | * |
| | | * @param coursePayId |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | CourseDetailsResponse queryRegisteredCourseDetails(Integer coursePackageId, Integer appUserId); |
| | | CourseDetailsResponse queryRegisteredCourseDetails(Long coursePayId, Integer appUserId, String lon, String lat); |
| | | |
| | | |
| | | ResultUtil ContinuationOrpaymentCourse(Integer userId, ClasspaymentRequest request); |
| | | |
| | | ResultUtil ContinuationOrpaymentCourse(Integer userIdFormRedis, ClasspaymentRequest request); |
| | | /** |
| | | * 查询学员的课包上课记录 |
| | | * |
| | | * @param stuId |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | List<RecordAppoint> obtainStuClassDetails(Integer stuId, Integer appUserId, Integer pageNum); |
| | | |
| | | ResultUtil insertVipPaymentCallback(String code, String orderNumber); |
| | | |
| | | List<BillingRequest> queryAmountDatas(Integer appUserId, String monthStart, String monthEnd); |
| | | |
| | | |
| | | /** |
| | | * 获取课包报名信息 |
| | | * |
| | | * @param page |
| | | * @param queryRegistrationRecord |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryRegistrationRecord(Page<Map<String, Object>> page, QueryRegistrationRecord queryRegistrationRecord); |
| | | |
| | | |
| | | /** |
| | | * 获取未预约排课学员列表 |
| | | * |
| | | * @param page |
| | | * @param queryWalkInStudentList |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryWalkInStudentList(Page<Map<String, Object>> page, QueryWalkInStudentList queryWalkInStudentList); |
| | | |
| | | List<PayCourseRes> getMyCourseList(Integer storeId, Integer appUserId); |
| | | |
| | | |
| | | PayCourseInfoReq payCourseInfo(Integer courseId); |
| | | |
| | | |
| | | ResultUtil payCourse(PayCourseReq req, Integer userId) throws ParseException; |
| | | |
| | | |
| | | void updateUseTime(Long id, Date date); |
| | | |
| | | List<Integer> getStudentIds(Long payId, Integer classId, Integer appId); |
| | | |
| | | boolean updateHoursById(TCoursePackagePayment byId, int i); |
| | | |
| | | |
| | | List<CoursePackagePaymentVO> listAll(CoursePackagePaymentQuery query); |
| | | |
| | | int changeState(CoursePackagePayDTO dto); |
| | | |
| | | void updateBytime(TCoursePackagePayment coursePackagePayment); |
| | | |
| | | List<RegisterOrderVO> listAllRegister(RegisterOrderQuery query); |
| | | |
| | | List<Map<String, Object>> getStudentTotal(StudentQeryDto studentQeryDto); |
| | | |
| | | List<Map<String, Object>> bypac(PacQueryDto pacQueryDto); |
| | | |
| | | List<TCoursePackagePayment> listOne(List<Integer> ids); |
| | | |
| | | Integer listStoreId(String code); |
| | | } |