Merge remote-tracking branch 'origin/master'
# Conflicts:
# cloud-server-account/src/main/java/com/dsh/account/feignclient/competition/DeductionCompetitionsClient.java
# cloud-server-account/src/main/java/com/dsh/account/feignclient/course/CoursePaymentClient.java
# cloud-server-account/src/main/java/com/dsh/account/feignclient/course/CourseSessionNameClient.java
# cloud-server-account/src/main/java/com/dsh/account/feignclient/other/StoreClient.java
# cloud-server-account/src/main/java/com/dsh/account/service/impl/TStudentServiceImpl.java
# cloud-server-activity/src/main/resources/mapper/UserCouponMapper.xml
# cloud-server-course/src/main/java/com/dsh/course/feignclient/CoursePaymentClient.java
1 文件已重命名
50个文件已修改
1个文件已删除
20个文件已添加
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.account.entity.TStudent; |
| | | import com.dsh.account.feignclient.competition.model.PurchaseRecordVo; |
| | | import com.dsh.account.model.vo.classDetails.ClasspaymentRequest; |
| | | import com.dsh.account.model.vo.classDetails.classInsVo.*; |
| | | import com.dsh.account.model.vo.commentDetail.StuCommentsVo; |
| | | import com.dsh.account.model.vo.medalDetail.GongVo; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | @PostMapping("/api/startCource/payment") |
| | | @ApiOperation(value = "课时详情-支付", tags = {"APP-开始上课"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | }) |
| | | public ResultUtil<?> continuationOperation(@RequestBody Integer lessonId, @RequestBody Integer stuId, HttpServletRequest request){ |
| | | public ResultUtil continuationOperation(@RequestBody ClasspaymentRequest request){ |
| | | try { |
| | | |
| | | return ResultUtil.success(); |
| | | Integer userIdFormRedis = tokenUtil.getUserIdFormRedis(); |
| | | if(null == userIdFormRedis){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return istuService.renewClassPayment(userIdFormRedis,request); |
| | | }catch (Exception e){ |
| | | return ResultUtil.runErr(); |
| | | } |
| | |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/api/startCource/afterSourceDetails") |
| | | @ApiOperation(value = "学员勋章", tags = {"APP-开始上课"}) |
| | | @ApiOperation(value = "课后视频课表", tags = {"APP-开始上课"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(value = "学员id", name = "stuId", required = true, dataType = "int"), |
| | |
| | | private TStudentService tsService; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/exploreWP/noticeList") |
| | | @PostMapping("/api/exploreWP/indexOfEx") |
| | | @ApiOperation(value = "联系客服-探索首页", tags = {"APP-探索玩湃"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/exploreWP/noticeList") |
| | | @PostMapping("/base/exploreWP/noticeDetail") |
| | | @ApiOperation(value = "联系客服-公告详情", tags = {"APP-探索玩湃"}) |
| | | public ResultUtil<SysNotice> queryNotice(@RequestBody Integer noId){ |
| | | try { |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/exploreWP/noticeList") |
| | | @PostMapping("/base/exploreWP/exceptionList") |
| | | @ApiOperation(value = "联系客服-常见问题列表", tags = {"APP-探索玩湃"}) |
| | | public ResultUtil<QuestionDetailsVo> queryFrequentlyAskedQuestionDetails(){ |
| | | try { |
| | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/exploreWP/noticeList") |
| | | @PostMapping("/base/exploreWP/exceptionDetail") |
| | | @ApiOperation(value = "联系客服-常见问题详情", tags = {"APP-探索玩湃"}) |
| | | public ResultUtil<QuestionIns> queryQuestionData(@RequestBody Integer quesId){ |
| | | try { |
| | |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/exploreWP/noticeList") |
| | | @PostMapping("/base/exploreWP/customerList") |
| | | @ApiOperation(value = "联系客服-客服电话列表", tags = {"APP-探索玩湃"}) |
| | | public ResultUtil<List<String>> queryCustomerData(){ |
| | | try { |
New file |
| | |
| | | package com.dsh.account.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coach") |
| | | public class Coach extends Model<Coach> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * 省 |
| | | */ |
| | | private String province; |
| | | /** |
| | | * 省编号 |
| | | */ |
| | | private String provinceCode; |
| | | /** |
| | | * 市 |
| | | */ |
| | | private String city; |
| | | /** |
| | | * 市编号 |
| | | */ |
| | | private String cityCode; |
| | | /** |
| | | * 城市管理员id |
| | | */ |
| | | private Integer cityManagerId; |
| | | /** |
| | | * 教练类型id |
| | | */ |
| | | private Integer coachTypeId; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | private String name; |
| | | /** |
| | | * 生日 |
| | | */ |
| | | private Date birthday; |
| | | /** |
| | | * 性别(1=男,2=女) |
| | | */ |
| | | private Integer gender; |
| | | /** |
| | | * 电话 |
| | | */ |
| | | private String phone; |
| | | /** |
| | | * 身份证号码 |
| | | */ |
| | | private String idcard; |
| | | /** |
| | | * 身高(厘米) |
| | | */ |
| | | private Double height; |
| | | /** |
| | | * 体重(KG) |
| | | */ |
| | | private Double weight; |
| | | /** |
| | | * 毕业院校 |
| | | */ |
| | | private String graduateSchool; |
| | | /** |
| | | * 毕业证照片 |
| | | */ |
| | | private String diploma; |
| | | /** |
| | | * 资格证书(多个逗号分隔) |
| | | */ |
| | | private String certificate; |
| | | /** |
| | | * 证书照片 |
| | | */ |
| | | private String certificateImg; |
| | | /** |
| | | * 状态(1=正常,2=冻结,3=删除) |
| | | */ |
| | | private Integer state; |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | private Date insertTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练类型 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coach_type") |
| | | public class CoachType extends Model<CoachType> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * 类型名称 |
| | | */ |
| | | private String name; |
| | | /** |
| | | * 状态(1=正常,2=冻结,3=删除) |
| | | */ |
| | | private Integer state; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.dsh.account.feignclient.competition.model.PurchaseRecordVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | public interface IntroduceRewardsClient { |
| | | |
| | | |
| | | @PostMapping("/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody List<Integer> userIds); |
| | | @PostMapping("/base/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("userIds") List<Integer> userIds); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface MerChandiseClient { |
| | | |
| | | @PostMapping("/pointMerchars/convertGoods") |
| | | @PostMapping("/base/pointMerchars/convertGoods") |
| | | public List<IntegralCommodity> getConvertibleGoods(); |
| | | |
| | | |
| | |
| | | import com.dsh.account.model.vo.sourceDetail.CouponStuAvailableVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface UserConponClient { |
| | | |
| | | |
| | | @PostMapping("/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestBody Integer appUserId); |
| | | @PostMapping("/base/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | |
| | | @FeignClient(value = "mb-cloud-competition") |
| | | public interface DeductionCompetitionsClient { |
| | | @PostMapping("/competition/getCompetitionsDetails") |
| | | @PostMapping("/base/competition/getCompetitionsDetails") |
| | | List<PurchaseRecordVo> getStuSourseList(GetStuSourseList getStuSourseList); |
| | | |
| | | } |
| | |
| | | import com.dsh.account.feignclient.competition.model.PurchaseRecordVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @FeignClient(value = "mb-cloud-course") |
| | | public interface CancelListClient { |
| | | |
| | | @PostMapping("/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | import com.dsh.account.feignclient.course.model.*; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface CoursePaymentClient { |
| | | |
| | | |
| | | @PostMapping("/coursePack/queryPayment") |
| | | @PostMapping("/base/coursePack/queryPayment") |
| | | List<StuCourseResp> getStuCoursePayment(); |
| | | |
| | | |
| | | @PostMapping("/coursePack/storeOfCourse") |
| | | @PostMapping("/base/coursePack/storeOfCourse") |
| | | List<CourseOfStoreVo> getStoreOfCourses(); |
| | | |
| | | @PostMapping("/coursePack/stuOfCourses") |
| | | @PostMapping("/base/coursePack/stuOfCourses") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(GetStuOfCoursesDetails getStuOfCoursesDetails); |
| | | |
| | | @PostMapping("/coursePack/continuingCourse") |
| | | @PostMapping("/base/coursePack/continuingCourse") |
| | | StudentOfCourseVo getStudentCourse(GetStudentCourse getStudentCourse); |
| | | |
| | | @PostMapping("/base/coursePack/afterCourseTwos") |
| | | List<AfterVideoVo> getAfterCourseTwos(@RequestParam("appUserId") Integer appUserId); |
| | | } |
| | |
| | | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | @FeignClient(value = "mb-cloud-course") |
| | | public interface CourseRecordClient { |
| | | |
| | | @PostMapping("/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestBody Integer courseId, @RequestBody Integer stuId, @RequestBody Integer appUserId); |
| | | @PostMapping("/base/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestParam("courseId") Integer courseId, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | public interface CourseSessionNameClient { |
| | | |
| | | |
| | | @PostMapping("/coursePack/sessionNames") |
| | | @PostMapping("/base/coursePack/sessionNames") |
| | | List<StuSessionDetailsVo> getStuSessionList(GetStuSessionList getStuSessionList); |
| | | |
| | | @PostMapping("/coursePack/paymentCourse") |
| | | @PostMapping("/base/coursePack/paymentCourse") |
| | | public List<PurchaseRecordVo> queryCourseDetails(GetStuSessionList getStuSessionList); |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.feignclient.course.model; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class AfterVideoVo { |
| | | |
| | | @ApiModelProperty(value = "视频id") |
| | | private Integer courseId; |
| | | |
| | | @ApiModelProperty(value = "视频链接") |
| | | private String courseUrl; |
| | | |
| | | } |
| | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface HonorDeClient { |
| | | |
| | | @PostMapping("/honor/stuHonors") |
| | | @PostMapping("/base/honor/stuHonors") |
| | | public List<StuMedalVo> getStuHonors(@RequestBody List<Integer> honorIds); |
| | | |
| | | } |
| | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface ImgConfigClient { |
| | | |
| | | @PostMapping("/imgConfig/getNoneStu") |
| | | @PostMapping("/base/imgConfig/getNoneStu") |
| | | List<TImgConfig> getNoneStuImgs(); |
| | | |
| | | |
| | | @PostMapping("/imgConfig/getBenefitImage") |
| | | @PostMapping("/base/imgConfig/getBenefitImage") |
| | | public UserBenefitImage getImageConfig(); |
| | | } |
| | |
| | | import com.dsh.account.feignclient.other.model.SysNotice; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | List<SysNotice> getSysNoticeDetails(); |
| | | |
| | | @PostMapping("/base/notice/queryNotice") |
| | | SysNotice getSysNoticeBuId(@RequestBody Integer noticeId); |
| | | SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId); |
| | | |
| | | @PostMapping("/base/notice/sysTell") |
| | | List<String> queryCustomerTel(); |
| | |
| | | import com.dsh.account.model.vo.exploreDetails.QuestionIns; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | |
| | | @FeignClient(value = "mb-cloud-other") |
| | |
| | | QuestionDetailsVo getSysQuestionDetails(); |
| | | |
| | | @PostMapping("/base/notice/queryQuestion") |
| | | QuestionIns getSysQuestionBuId(@RequestBody Integer quesId); |
| | | QuestionIns getSysQuestionBuId(@RequestParam("quesId") Integer quesId); |
| | | |
| | | } |
| | |
| | | * @author zhibing.pu |
| | | * @date 2023/6/24 15:54 |
| | | */ |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface StoreClient { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | List<Store> queryStoreList(QueryStoreList queryStoreList); |
| | | |
| | | |
| | | @PostMapping("/storeDetail/courseOfSto") |
| | | StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId); |
| | | |
| | | |
| | | @PostMapping("/storeDetail/nearbyStore") |
| | | @PostMapping("/base/protocol/storeDetail/courseOfSto") |
| | | public StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId); |
| | | |
| | | |
| | | @PostMapping("/base/protocol/storeDetail/nearbyStore") |
| | | List<StoreInfo> getAllNearbyStoreList(GetAllNearbyStoreList getAllNearbyStoreList); |
| | | |
| | | |
| | | @PostMapping("/storeDetail/storeOfLonLat") |
| | | @PostMapping("/base/protocol/storeDetail/storeOfLonLat") |
| | | List<StoreLonLatList> getAllStoreLonLats(GetAllNearbyStoreList getAllNearbyStoreList); |
| | | } |
New file |
| | |
| | | package com.dsh.account.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.account.entity.Coach; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface CoachMapper extends BaseMapper<Coach> { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.account.entity.CoachType; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练类型 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface CoachTypeMapper extends BaseMapper<CoachType> { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.model.vo.classDetails; |
| | | |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ClasspaymentRequest { |
| | | |
| | | @ApiModelProperty(value = "课包id") |
| | | private Integer lessonId; |
| | | |
| | | @ApiModelProperty(value = "学员id") |
| | | private Integer stuId; |
| | | |
| | | @ApiModelProperty(value = "支付方式(1=微信 2=支付宝 3=玩湃币)") |
| | | private Integer payType; |
| | | |
| | | @ApiModelProperty(value = "是否使用优惠券 1是 2否") |
| | | private Integer useConpon; |
| | | |
| | | @ApiModelProperty(value = "优惠券Id") |
| | | private Integer conponId; |
| | | |
| | | @ApiModelProperty(value = "课时id") |
| | | private Long courseConfigId; |
| | | |
| | | |
| | | } |
| | |
| | | public class CourseHoursType { |
| | | |
| | | @ApiModelProperty(value = "课时id") |
| | | private Integer courseConfigId; |
| | | private Long courseConfigId; |
| | | |
| | | @ApiModelProperty(value = "课时数") |
| | | private Integer courseHourNums; |
New file |
| | |
| | | package com.dsh.account.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.account.entity.Coach; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface CoachService extends IService<Coach> { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.account.entity.CoachType; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练类型 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface CoachTypeService extends IService<CoachType> { |
| | | |
| | | } |
| | |
| | | import com.dsh.account.entity.TStudent; |
| | | import com.dsh.account.feignclient.competition.model.PurchaseRecordVo; |
| | | import com.dsh.account.feignclient.other.model.SysNotice; |
| | | 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.model.vo.sourceDetail.CouponStuAvailableVo; |
| | | import com.dsh.account.model.vo.sourceDetail.CourseDetailsOfContinuationResp; |
| | | import com.dsh.account.model.vo.sourceDetail.RecordTimeRequest; |
| | | import com.dsh.account.util.ResultUtil; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | List<StuListVo> switchStudentActions(Integer appUserId, Integer stuId); |
| | | |
| | | ResultUtil renewClassPayment(Integer userIdFormRedis, ClasspaymentRequest request); |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.account.entity.Coach; |
| | | import com.dsh.account.mapper.CoachMapper; |
| | | import com.dsh.account.service.CoachService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Service |
| | | public class CoachServiceImpl extends ServiceImpl<CoachMapper, Coach> implements CoachService { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.account.entity.CoachType; |
| | | import com.dsh.account.mapper.CoachTypeMapper; |
| | | import com.dsh.account.service.CoachTypeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 教练类型 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Service |
| | | public class CoachTypeServiceImpl extends ServiceImpl<CoachTypeMapper, CoachType> implements CoachTypeService { |
| | | |
| | | } |
| | |
| | | |
| | | List<ExerciseVideo> videos = new ArrayList<>(); |
| | | |
| | | |
| | | classInfoVo.setExerciseVideoList(videos); |
| | | }else { |
| | | classInfoVo.setIsThere(2); |
| | |
| | | |
| | | 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.*; |
| | | 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; |
| | |
| | | |
| | | @Resource |
| | | private TAppUserMapper tauMapper; |
| | | |
| | | @Autowired |
| | | private CoachMapper coachMapper; |
| | | |
| | | @Override |
| | | public void addStuOfAppUser(StuDetailsReq stu,Integer appUserId) { |
| | |
| | | getStudentCourse.setStuId(stuId); |
| | | getStudentCourse.setAppUserId(appUserId); |
| | | StudentOfCourseVo studentCourse = couPayClient.getStudentCourse(getStudentCourse); |
| | | 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(){ |
| | | |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.account.mapper.CoachMapper"> |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.account.mapper.CoachTypeMapper"> |
| | | |
| | | |
| | | </mapper> |
| | |
| | | private final SimpleDateFormat mat = new SimpleDateFormat("MM-dd HH:mm"); |
| | | |
| | | |
| | | @PostMapping("/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestBody Date startTime, @RequestBody Date endTime, @RequestBody List<Integer> userIds){ |
| | | @PostMapping("/base/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestParam("startTime") Date startTime,@RequestParam("endTime") Date endTime,@RequestParam("userIds") List<Integer> userIds){ |
| | | List<PurchaseRecordVo> recordVos = new ArrayList<>(); |
| | | List<IntroduceRewards> list = idrService.list(new QueryWrapper<IntroduceRewards>() |
| | | .ge("startTime",startTime) |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/pointMerchars/convertGoods") |
| | | @PostMapping("/base/pointMerchars/convertGoods") |
| | | public List<IntegralCommodity> getConvertibleGoods(){ |
| | | List<IntegralCommodity> commodity = new ArrayList<>(); |
| | | List<PointsMerchandise> merchandises = pmdsService.list(new QueryWrapper<PointsMerchandise>() |
| | |
| | | |
| | | private final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM"); |
| | | |
| | | @PostMapping("/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestBody Integer appUserId){ |
| | | @PostMapping("/base/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId){ |
| | | |
| | | List<CouponStuAvailableVo> availableVos = new ArrayList<>(); |
| | | |
| | |
| | | import com.dsh.activity.feignclient.model.PurchaseRecordVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface IntroduceRewardsClient { |
| | | |
| | | @PostMapping("/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody List<Integer> userIds); |
| | | |
| | | @PostMapping("/base/introduce/useOfRewards") |
| | | public List<PurchaseRecordVo> queryAppUsersofIntroduce(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("userIds") List<Integer> userIds); |
| | | } |
| | |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface MerChandiseClient { |
| | | |
| | | @PostMapping("/pointMerchars/convertGoods") |
| | | @PostMapping("/base/pointMerchars/convertGoods") |
| | | public List<IntegralCommodity> getConvertibleGoods(); |
| | | |
| | | |
| | |
| | | import com.dsh.activity.feignclient.model.CouponStuAvailableVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface UserConponClient { |
| | | |
| | | |
| | | @PostMapping("/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestBody Integer appUserId); |
| | | @PostMapping("/base/userConpon/getStuOfConpons") |
| | | public List<CouponStuAvailableVo> queryUserWithConponList(@RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.activity.mapper.IntroduceRewardsMapper"> |
| | | |
| | | <!-- 开启二级缓存 --> |
| | | <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> |
| | | |
| | | </mapper> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.activity.mapper.UserCouponMapper"> |
| | | |
| | | <!-- 开启二级缓存 --> |
| | | <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> |
| | | |
| | | |
| | | |
| | | <select id="queryAvailableCouponList" resultType="map"> |
| | | select |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.activity.mapper.UserPointsMerchandiseMapper"> |
| | | |
| | | <!-- 开启二级缓存 --> |
| | | <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | private final SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd HH:mm"); |
| | | |
| | | @PostMapping("/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestBody Date startTime, @RequestBody Date endTime,@RequestParam("appUserId") Integer appUserId){ |
| | | @PostMapping("/base/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestParam("startTime") Date startTime, @RequestParam("endTime") Date endTime, @RequestParam("appUserId") Integer appUserId){ |
| | | |
| | | List<PurchaseRecordVo> recordVos = new ArrayList<>(); |
| | | |
| | |
| | | import com.dsh.competition.feignclient.model.PurchaseRecordVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | |
| | | @FeignClient(value = "mb-cloud-competition") |
| | | public interface DeductionCompetitionsClient { |
| | | |
| | | @PostMapping("/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @PostMapping("/base/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | * @param appUserId 用户id |
| | | * @return |
| | | */ |
| | | @PostMapping("/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestBody Date startTime,@RequestBody Date endTime,@RequestBody Integer stuId,@RequestBody Integer appUserId){ |
| | | @PostMapping("/base/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestParam("startTime") Date startTime, @RequestParam("endTime") Date endTime, @RequestParam("stuId") Integer stuId, @RequestParam("appUserId") Integer appUserId){ |
| | | List<PurchaseRecordVo> purchaseRecordVos = new ArrayList<>(); |
| | | |
| | | List<TCoursePackagePayment> tCoursePackagePayments = tcppService.queryAllCoursePackage(startTime,endTime,null,stuId, appUserId); |
| | | List<Integer> coursePackageIds = tCoursePackagePayments.stream().map(TCoursePackagePayment::getId).collect(Collectors.toList()); |
| | | List<Long> coursePackageIds = tCoursePackagePayments.stream().map(TCoursePackagePayment::getId).collect(Collectors.toList()); |
| | | |
| | | List<CancelledClasses> list = caceService.list(new QueryWrapper<CancelledClasses>() |
| | | .in("coursePackageId", coursePackageIds) |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.course.entity.TCoursePackage; |
| | | import com.dsh.course.entity.TCoursePackageDiscount; |
| | | import com.dsh.course.entity.TCoursePackagePayment; |
| | | import com.dsh.course.feignclient.model.*; |
| | | import com.dsh.course.model.dto.DiscountJsonDto; |
| | | import com.dsh.course.service.PostCourseVideoService; |
| | | import com.dsh.course.service.TCoursePackageDiscountService; |
| | | import com.dsh.course.service.TCoursePackagePaymentService; |
| | | import com.dsh.course.service.TCoursePackageService; |
| | | import com.dsh.course.util.DateUtil; |
| | | import com.dsh.course.util.StrUtils; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import io.swagger.annotations.Api; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | @Autowired |
| | | private TCoursePackageService tcpService; |
| | | |
| | | @Autowired |
| | | private TCoursePackageDiscountService tcpdService; |
| | | |
| | | @Autowired |
| | | private PostCourseVideoService pcvService; |
| | | |
| | | private final SimpleDateFormat format = new SimpleDateFormat("MM-dd HH:mm"); |
| | | |
| | | /** |
| | |
| | | * @param stuId 学员id |
| | | * @return 课包列表 |
| | | */ |
| | | @PostMapping("/coursePack/queryPayment") |
| | | public List<StuCourseResp> getStuCoursePackagePayment(@RequestBody Integer stuId,@RequestBody Integer appUserId){ |
| | | @PostMapping("/base/coursePack/queryPayment") |
| | | public List<StuCourseResp> getStuCoursePackagePayment(@RequestParam("stuId") Integer stuId,@RequestParam("appUserId") Integer appUserId){ |
| | | List<StuCourseResp> resps = new ArrayList<>(); |
| | | List<TCoursePackagePayment> byUserId = packagePaymentService.queryAllCoursePackage(null,null,null,stuId,appUserId); |
| | | if (byUserId.size() > 0 ){ |
| | |
| | | * |
| | | * 获取发布的 课包列表 |
| | | */ |
| | | @PostMapping("/coursePack/storeOfCourse") |
| | | @PostMapping("/base/coursePack/storeOfCourse") |
| | | public List<CourseOfStoreVo> getStuCourseWithStores(){ |
| | | List<CourseOfStoreVo> courseOfStoreVos = tcpService.queryStoreOfCourse(); |
| | | if (courseOfStoreVos.size() > 0){ |
| | |
| | | * |
| | | * 课程名称列表 |
| | | */ |
| | | @PostMapping("/coursePack/sessionNames") |
| | | public List<StuSessionDetailsVo> getStuSessionList(@RequestBody Date startTime, @RequestBody Date endTime, @RequestBody Integer stuId, @RequestBody Integer appUserId){ |
| | | @PostMapping("/base/coursePack/sessionNames") |
| | | public List<StuSessionDetailsVo> getStuSessionList(@RequestParam("startTime") Date startTime, @RequestParam("endTime") Date endTime, @RequestParam("stuId") Integer stuId, @RequestParam("appUserId") Integer appUserId){ |
| | | List<StuSessionDetailsVo> detailsVos = new ArrayList<>(); |
| | | List<TCoursePackagePayment> byUserId = packagePaymentService.queryAllCoursePackage(startTime,endTime,null,stuId,appUserId); |
| | | if (byUserId.size() > 0){ |
| | |
| | | return detailsVos; |
| | | } |
| | | |
| | | @PostMapping("/coursePack/paymentCourse") |
| | | public List<PurchaseRecordVo> queryCourseDetails(@RequestBody Date startTime, @RequestBody Date endTime,@RequestBody Integer stuId, @RequestBody Integer appUserId) { |
| | | @PostMapping("/base/coursePack/paymentCourse") |
| | | public List<PurchaseRecordVo> queryCourseDetails(@RequestParam("startTime") Date startTime, @RequestParam("endTime") Date endTime,@RequestParam("stuId") Integer stuId, @RequestParam("appUserId") Integer appUserId) { |
| | | List<PurchaseRecordVo> purchaseRecordVos = new ArrayList<>(); |
| | | List<TCoursePackagePayment> coursePackage = packagePaymentService.queryAllCoursePackage(startTime,endTime,null,stuId, appUserId); |
| | | if (coursePackage.size() > 0 ){ |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/coursePack/stuOfCourses") |
| | | public StuWithCoursesListVo getStuOfCoursesDetails(@RequestBody Integer stuId, @RequestBody Integer appUserId){ |
| | | @PostMapping("/base/coursePack/stuOfCourses") |
| | | public StuWithCoursesListVo getStuOfCoursesDetails(@RequestParam("stuId") Integer stuId, @RequestParam("appUserId") Integer appUserId){ |
| | | StuWithCoursesListVo lisco = new StuWithCoursesListVo(); |
| | | Integer totalNu = 0; |
| | | Integer dedutNu = 0; |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/coursePack/continuingCourse") |
| | | public StudentOfCourseVo getStudentCourse(@RequestBody Integer courseId,@RequestBody Integer stuId,@RequestBody Integer appUserId){ |
| | | @PostMapping("/base/coursePack/continuingCourse") |
| | | public StudentOfCourseVo getStudentCourse(@RequestParam("courseId") Integer courseId,@RequestParam("stuId") Integer stuId,@RequestParam("appUserId") Integer appUserId){ |
| | | StudentOfCourseVo courseVo = new StudentOfCourseVo(); |
| | | List<TCoursePackagePayment> tCoursePackagePayments = packagePaymentService.queryAllCoursePackage(null,null,courseId,stuId,appUserId); |
| | | if (tCoursePackagePayments.size() > 0 ){ |
| | |
| | | } |
| | | |
| | | courseVo.setCourseTime(coursePackage.getClassStartTime()+"-"+coursePackage.getClassEndTime()); |
| | | // TODO: 2023/6/30 查询会员折扣数据 |
| | | String payType = tCoursePackagePayment.getPayType(); |
| | | BigDecimal cashPayment = tCoursePackagePayment.getCashPayment(); |
| | | double cashPaymentValue = cashPayment.doubleValue(); |
| | | Integer playPaiCoin = tCoursePackagePayment.getPlayPaiCoin(); |
| | | TCoursePackageDiscount coursePackageDiscount = tcpdService.getOne(new QueryWrapper<TCoursePackageDiscount>() |
| | | .eq("coursePackageId",coursePackage.getId() ) |
| | | .eq("type",1) |
| | | .eq("auditStatus",2)); |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | String content = coursePackageDiscount.getContent(); |
| | | double discountMember = 0.0; |
| | | DiscountJsonDto discountJsonDto = null; |
| | | try { |
| | | discountJsonDto = objectMapper.readValue(content, DiscountJsonDto.class); |
| | | discountMember = discountJsonDto.getDiscountMember(); |
| | | } catch (JsonProcessingException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | switch (payType) { |
| | | case "1;2": |
| | | courseVo.setAmount(cashPaymentValue); |
| | | courseVo.setVipAmount(discountMember); |
| | | courseVo.setWpGold(playPaiCoin); |
| | | break; |
| | | case "1": |
| | | courseVo.setAmount(cashPaymentValue); |
| | | courseVo.setVipAmount(discountMember); |
| | | break; |
| | | case "2": |
| | | courseVo.setWpGold(playPaiCoin); |
| | | break; |
| | | } |
| | | |
| | | courseVo.setStoreId(coursePackage.getStoreId()); |
| | | } |
| | | |
| | | return courseVo; |
| | | } |
| | | |
| | | |
| | | @PostMapping("/base/coursePack/afterCourseTwos") |
| | | public List<AfterVideoVo> getAfterCourseTwos(@RequestParam("appUserId") Integer appUserId){ |
| | | List<AfterVideoVo> videoVos = new ArrayList<>(); |
| | | List<TCoursePackagePayment> tCoursePackagePayments = packagePaymentService.queryAllCoursePackage(null,null,null,null,appUserId); |
| | | List<Integer> coursePackageIds = tCoursePackagePayments.stream().map(TCoursePackagePayment::getCoursePackageId).collect(Collectors.toList()); |
| | | // List<PostCourseVideo> videoList = pcvService.queryAllVideoNoneShow(coursePackageIds); |
| | | return videoVos; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | @PostMapping("/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestBody Integer courseId,@RequestBody Integer stuId,@RequestBody Integer appUserId){ |
| | | @PostMapping("/base/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestParam("courseId") Integer courseId,@RequestParam("stuId") Integer stuId,@RequestParam("appUserId") Integer appUserId){ |
| | | Integer sult = 0; |
| | | TCoursePackage coursePackage = tcpService.getById(courseId); |
| | | if (null != coursePackage && coursePackage.getStatus() == 3){ |
New file |
| | |
| | | package com.dsh.course.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 课后视频发布记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_post_course_video") |
| | | public class PostCourseVideo extends Model<PostCourseVideo> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | private Integer id; |
| | | /** |
| | | * 课包id |
| | | */ |
| | | private Integer coursePackageId; |
| | | /** |
| | | * 上课日期 |
| | | */ |
| | | private Date courseDate; |
| | | /** |
| | | * 周几 |
| | | */ |
| | | private Integer courseWeek; |
| | | /** |
| | | * 课后视频id |
| | | */ |
| | | private Integer courseId; |
| | | /** |
| | | * 上课日期 |
| | | */ |
| | | private Date postDate; |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | private Integer validDays; |
| | | /** |
| | | * 课后练习课程id |
| | | */ |
| | | private Integer courseId; |
| | | /** |
| | | * 课后练习视频介绍 |
| | | */ |
| | | private String introduce; |
| | | /** |
| | | * 完成课后练习获取积分 |
| | | */ |
| | | private Integer integral; |
| | | /** |
| | | * 课程状态(1=未开始,2=进行中,3=已结束,4=已取消) |
| | | */ |
| | | private Integer status; |
| | |
| | | package com.dsh.course.entity; |
| | | |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | private Integer type; |
| | | /** |
| | | * 折扣优惠规则JSON |
| | | * 折扣优惠规则JSON ->详见 DiscountJsonDto类 |
| | | */ |
| | | private String content; |
| | | /** |
| | |
| | | import com.dsh.course.feignclient.model.PurchaseRecordVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @FeignClient(value = "mb-cloud-course") |
| | | public interface CancelListClient { |
| | | |
| | | @PostMapping("/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/cancelSource/cancelList") |
| | | public List<PurchaseRecordVo> getCancelCourseList(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.course.feignclient; |
| | | |
| | | |
| | | import com.dsh.course.feignclient.model.*; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | @FeignClient(value = "mb-cloud-course") |
| | | public interface CoursePaymentClient { |
| | | |
| | | |
| | | @PostMapping("/base/coursePack/queryPayment") |
| | | List<StuCourseResp> getStuCoursePayment(); |
| | | |
| | | @PostMapping("/base/coursePack/storeOfCourse") |
| | | List<CourseOfStoreVo> getStoreOfCourses(); |
| | | |
| | | @PostMapping("/base/coursePack/stuOfCourses") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(@RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/base/coursePack/continuingCourse") |
| | | StudentOfCourseVo getStudentCourse(@RequestParam("courseId") Integer courseId, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/base/coursePack/afterCourseTwos") |
| | | List<AfterVideoVo> getAfterCourseTwos(@RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | @FeignClient(value = "mb-cloud-course") |
| | | public interface CourseRecordClient { |
| | | |
| | | @PostMapping("/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestBody Integer courseId, @RequestBody Integer stuId, @RequestBody Integer appUserId); |
| | | @PostMapping("/base/courseRecord/queryDeduClassHours") |
| | | public Integer getDeductionClassHour(@RequestParam("courseId") Integer courseId, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | import com.dsh.course.feignclient.model.StuSessionDetailsVo; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | public interface CourseSessionNameClient { |
| | | |
| | | |
| | | @PostMapping("/coursePack/sessionNames") |
| | | List<StuSessionDetailsVo> getStuSessionList(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/coursePack/sessionNames") |
| | | List<StuSessionDetailsVo> getStuSessionList(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | |
| | | @PostMapping("/coursePack/paymentCourse") |
| | | public List<PurchaseRecordVo> queryCourseDetails(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/coursePack/paymentCourse") |
| | | public List<PurchaseRecordVo> queryCourseDetails(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.course.feignclient.model; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class AfterVideoVo { |
| | | |
| | | @ApiModelProperty(value = "视频id") |
| | | private Integer courseId; |
| | | |
| | | @ApiModelProperty(value = "视频链接") |
| | | private String courseUrl; |
| | | |
| | | } |
| | |
| | | |
| | | @Data |
| | | public class StudentOfCourseVo { |
| | | |
| | | /** |
| | | * 课包id |
| | | */ |
| | | @ApiModelProperty(value = "课包id") |
| | | private Integer coursePackageId; |
| | | |
| | | /** |
| | | * 课包封面图 |
| | | */ |
| | | @ApiModelProperty(value = "课包封面图") |
| | | private String packageImg; |
| | | |
| | | /** |
| | | * 课包名称 |
| | | */ |
| | | @ApiModelProperty(value = "课包名称") |
| | | private String courseName; |
| | | |
| | | /** |
| | | * 授课老师/教练 |
| | | */ |
| | | @ApiModelProperty(value = "授课老师/教练") |
| | | private Integer coachId; |
| | | |
| | | /** |
| | | * 上课周 |
| | | */ |
| | | @ApiModelProperty(value = "上课周 例如:每周二") |
| | | private String courseWeek; |
| | | |
| | | /** |
| | | * 上课时间 |
| | | */ |
| | | @ApiModelProperty(value = "上课时间:例如 14:00-16:00") |
| | | private String courseTime; |
| | | |
| | | /** |
| | | * 课时列表 |
| | | */ |
| | | @ApiModelProperty(value = "课时列表: 50 70 90") |
| | | private List<CourseHoursType> typeList; |
| | | |
| | | /** |
| | | * 支付价格 |
| | | */ |
| | | @ApiModelProperty(value = "支付价格") |
| | | private double amount; |
| | | |
| | | @ApiModelProperty(value = "会员价") |
| | | /** |
| | | * vip价格 |
| | | */ |
| | | @ApiModelProperty(value = "vip价格") |
| | | private double vipAmount; |
| | | |
| | | /** |
| | | * 玩湃币 |
| | | */ |
| | | @ApiModelProperty(value = "玩湃币") |
| | | private Integer wpGold; |
| | | |
| | | /** |
| | | * 门店id |
| | | */ |
| | | @ApiModelProperty(value = "门店id") |
| | | private Integer storeId; |
| | | |
New file |
| | |
| | | package com.dsh.course.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.course.entity.PostCourseVideo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 课后视频发布记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface PostCourseVideoMapper extends BaseMapper<PostCourseVideo> { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.course.model.dto; |
| | | |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 折扣类型json字符串封装 |
| | | */ |
| | | |
| | | @Data |
| | | public class DiscountJsonDto { |
| | | /** |
| | | * type为1,为会员折扣现金支付金额;type为3,为限时折扣现金支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "type为1,为会员折扣现金支付金额 type为3,为限时折扣现金支付金额") |
| | | private double discountMember; |
| | | /** |
| | | * 会员续课现金支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "会员续课现金支付金额") |
| | | private double continuingMember; |
| | | /** |
| | | * 用户续课现金支付金额 |
| | | */ |
| | | @ApiModelProperty(value = "用户续课现金支付金额") |
| | | private double continuingUser; |
| | | /** |
| | | * 有效期开始时间(2023-01-01) |
| | | */ |
| | | @ApiModelProperty(value = "有效期开始时间") |
| | | private String lifespanStart; |
| | | /** |
| | | * 有效期结束时间 |
| | | */ |
| | | @ApiModelProperty(value = "有效期结束时间") |
| | | private String lifespanEnd; |
| | | /** |
| | | * 赠送课时数 |
| | | */ |
| | | @ApiModelProperty(value = "赠送课时数") |
| | | private Integer classHours; |
| | | /** |
| | | * 周数 (1;2;5) |
| | | */ |
| | | @ApiModelProperty(value = "周数") |
| | | private String weekNum; |
| | | /** |
| | | * 折扣时间 开始时间(08:00) |
| | | */ |
| | | @ApiModelProperty(value = "折扣时间 开始时间") |
| | | private String timeFrameStart; |
| | | /** |
| | | * 折扣时间 结束时间 |
| | | */ |
| | | @ApiModelProperty(value = "折扣时间 结束时间") |
| | | private String timeFrameEnd; |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.course.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.course.entity.PostCourseVideo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 课后视频发布记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | public interface PostCourseVideoService extends IService<PostCourseVideo> { |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.course.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.course.entity.PostCourseVideo; |
| | | import com.dsh.course.mapper.PostCourseVideoMapper; |
| | | import com.dsh.course.service.PostCourseVideoService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 课后视频发布记录 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-07-05 |
| | | */ |
| | | @Service |
| | | public class PostCourseVideoServiceImpl extends ServiceImpl<PostCourseVideoMapper, PostCourseVideo> implements PostCourseVideoService { |
| | | |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.course.mapper.PostCourseVideoMapper"> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.course.entity.Agreement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | @Mapper |
| | | public interface AgreementMapper extends BaseMapper<Agreement> { |
| | | |
| | | |
| | |
| | | import com.dsh.other.model.vo.questionVo.QuestionIns; |
| | | import com.dsh.other.service.FrequentlyAskedQuestionsService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryQuestion") |
| | | public QuestionIns getSysQuestionBuId(@RequestBody Integer quesId){ |
| | | public QuestionIns getSysQuestionBuId(@RequestParam("quesId") Integer quesId){ |
| | | QuestionIns sysNotice = new QuestionIns(); |
| | | FrequentlyAskedQuestions notice = faqService.getById(quesId); |
| | | if (null != notice){ |
| | |
| | | private HonorRulesService hrService; |
| | | |
| | | |
| | | @PostMapping("/honor/stuHonors") |
| | | @PostMapping("/base/honor/stuHonors") |
| | | public List<StuMedalVo> getStuHonors(@RequestBody List<Integer> honorIds){ |
| | | List<StuMedalVo> stuMedalVos = new ArrayList<>(); |
| | | List<HonorRules> honorRules = hrService.list(new QueryWrapper<HonorRules>() |
| | |
| | | /** |
| | | * 获取 没有学员信息的图片配置 |
| | | */ |
| | | @PostMapping("/imgConfig/getNoneStu") |
| | | @PostMapping("/base/imgConfig/getNoneStu") |
| | | public List<TImgConfig> getDriver(){ |
| | | return imgConfigService.list(new QueryWrapper<TImgConfig>() |
| | | .eq("position", 1)); |
| | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/imgConfig/getBenefitImage") |
| | | @PostMapping("/base/imgConfig/getBenefitImage") |
| | | public UserBenefitImage getImageConfig(){ |
| | | UserBenefitImage image = new UserBenefitImage(); |
| | | ArrayList<Integer> integers = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | @PostMapping("/base/protocol/storeDetail/nearbyStore") |
| | | public List<StoreInfo> getAllNearbyStoreList(@RequestBody String longitude,@RequestBody String latitude){ |
| | | public List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude){ |
| | | String current = longitude+","+latitude; |
| | | List<StoreInfo> storeInfos = new ArrayList<>(); |
| | | String cityCode = ""; |
| | |
| | | |
| | | |
| | | @PostMapping("/base/protocol/storeDetail/storeOfLonLat") |
| | | public List<StoreLonLatList> getAllStoreLonLats(@RequestBody String longitude, @RequestBody String latitude){ |
| | | public List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude){ |
| | | List<StoreLonLatList> storeInfos = new ArrayList<>(); |
| | | try { |
| | | Map<String, String> geocode = gdMapGeocodingUtil.geocode(longitude, latitude); |
| | |
| | | import com.dsh.other.service.NoticeService; |
| | | import com.dsh.other.service.PhoneService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryNotice") |
| | | public SysNotice getSysNoticeBuId(@RequestBody Integer noticeId){ |
| | | public SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId){ |
| | | SysNotice sysNotice = new SysNotice(); |
| | | Notice notice = noticeSers.getById(noticeId); |
| | | if (null != notice){ |
| | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface HonorDeClient { |
| | | |
| | | @PostMapping("/honor/stuHonors") |
| | | @PostMapping("/base/honor/stuHonors") |
| | | public List<StuMedalVo> getStuHonors(@RequestBody List<Integer> honorIds); |
| | | |
| | | } |
| | |
| | | @FeignClient(value = "mb-cloud-other") |
| | | public interface ImgConfigClient { |
| | | |
| | | @PostMapping("/imgConfig/getNoneStu") |
| | | @PostMapping("/base/imgConfig/getNoneStu") |
| | | List<TImgConfig> getNoneStuImgs(); |
| | | |
| | | |
| | | @PostMapping("/imgConfig/getBenefitImage") |
| | | @PostMapping("/base/imgConfig/getBenefitImage") |
| | | public UserBenefitImage getImageConfig(); |
| | | |
| | | } |
| | |
| | | import com.dsh.other.feignclient.model.SysNotice; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | List<SysNotice> getSysNoticeDetails(); |
| | | |
| | | @PostMapping("/base/notice/queryNotice") |
| | | SysNotice getSysNoticeBuId(@RequestBody Integer noticeId); |
| | | SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId); |
| | | |
| | | @PostMapping("/base/notice/sysTell") |
| | | List<String> queryCustomerTel(); |
| | |
| | | import com.dsh.other.model.vo.questionVo.QuestionIns; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | |
| | | @FeignClient(value = "mb-cloud-other") |
| | |
| | | QuestionDetailsVo getSysQuestionDetails(); |
| | | |
| | | @PostMapping("/base/notice/queryQuestion") |
| | | QuestionIns getSysQuestionBuId(@RequestBody Integer quesId); |
| | | QuestionIns getSysQuestionBuId(@RequestParam("quesId") Integer quesId); |
| | | |
| | | } |
| | |
| | | import com.dsh.other.feignclient.model.StoreLonLatList; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface StoreClient { |
| | | |
| | | |
| | | @PostMapping("/storeDetail/courseOfSto") |
| | | public StoreDetailOfCourse getCourseOfStore(@RequestBody Integer storeId); |
| | | @PostMapping("/base/protocol/storeDetail/courseOfSto") |
| | | StoreDetailOfCourse getCourseOfStore(@RequestParam("storeId") Integer storeId); |
| | | |
| | | |
| | | @PostMapping("/storeDetail/nearbyStore") |
| | | List<StoreInfo> getAllNearbyStoreList(@RequestBody String longitude, @RequestBody String latitude); |
| | | @PostMapping("/base/protocol/storeDetail/nearbyStore") |
| | | List<StoreInfo> getAllNearbyStoreList(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); |
| | | |
| | | |
| | | @PostMapping("/storeDetail/storeOfLonLat") |
| | | public List<StoreLonLatList> getAllStoreLonLats(@RequestBody String longitude, @RequestBody String latitude); |
| | | @PostMapping("/base/protocol/storeDetail/storeOfLonLat") |
| | | List<StoreLonLatList> getAllStoreLonLats(@RequestParam("longitude") String longitude, @RequestParam("latitude") String latitude); |
| | | } |