1 文件已重命名
44个文件已修改
1个文件已删除
| | |
| | | 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 { |
| | |
| | | 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); |
| | | |
| | | } |
| | |
| | | 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-competition") |
| | | public interface DeductionCompetitionsClient { |
| | | @PostMapping("/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestBody Date startTime, |
| | | @RequestBody Date endTime, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/competition/getCompetitionsDetails") |
| | | public List<PurchaseRecordVo> getStuSourseList(@RequestParam("startTime") Date startTime, |
| | | @RequestParam("endTime") Date endTime, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | } |
| | |
| | | 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.StudentOfCourseVo; |
| | | 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") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(@RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/coursePack/stuOfCourses") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(@RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/coursePack/continuingCourse") |
| | | StudentOfCourseVo getStudentCourse(@RequestBody Integer courseId, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | StudentOfCourseVo getStudentCourse(@RequestParam("courseId") Integer courseId, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @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.account.feignclient.course.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); |
| | | |
| | | } |
| | |
| | | @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); |
| | | |
| | | } |
| | |
| | | |
| | | import com.dsh.account.feignclient.course.model.QueryStoreList; |
| | | import com.dsh.account.feignclient.other.model.Store; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @date 2023/6/24 15:54 |
| | | */ |
| | | import com.dsh.account.feignclient.other.model.StoreDetailOfCourse; |
| | | import com.dsh.account.feignclient.other.model.StoreInfo; |
| | | import com.dsh.account.feignclient.other.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; |
| | | |
| | |
| | | |
| | | |
| | | |
| | | @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); |
| | | } |
| | |
| | | public class CourseHoursType { |
| | | |
| | | @ApiModelProperty(value = "课时id") |
| | | private Integer courseConfigId; |
| | | private Long courseConfigId; |
| | | |
| | | @ApiModelProperty(value = "课时数") |
| | | private Integer courseHourNums; |
| | |
| | | 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"/> |
| | | |
| | | </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.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) |
| | |
| | | * @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 ){ |
| | |
| | | tCoursePackagePayments.forEach(cou -> { |
| | | CourseHoursType hoursType = new CourseHoursType(); |
| | | hoursType.setCourseConfigId(cou.getId()); |
| | | hoursType.setCourseConfigId(cou.getClassHours()); |
| | | hoursType.setCourseHourNums(cou.getClassHours()); |
| | | typeList.add(hoursType); |
| | | }); |
| | | TCoursePackagePayment tCoursePackagePayment = tCoursePackagePayments.get(0); |
| | |
| | | |
| | | |
| | | |
| | | @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){ |
| | |
| | | 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); |
| | | |
| | | } |
| | |
| | | package com.dsh.course.feignclient; |
| | | |
| | | |
| | | |
| | | import com.dsh.course.feignclient.model.*; |
| | | import com.dsh.course.feignclient.model.CourseOfStoreVo; |
| | | import com.dsh.course.feignclient.model.StuCourseResp; |
| | | import com.dsh.course.feignclient.model.StuWithCoursesListVo; |
| | | import com.dsh.course.feignclient.model.StudentOfCourseVo; |
| | | 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") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(@RequestBody Integer stuId,@RequestBody Integer appUserId); |
| | | @PostMapping("/base/coursePack/stuOfCourses") |
| | | StuWithCoursesListVo getStuOfCoursesDetails(@RequestParam("stuId") Integer stuId, |
| | | @RequestParam("appUserId") Integer appUserId); |
| | | |
| | | @PostMapping("/coursePack/continuingCourse") |
| | | StudentOfCourseVo getStudentCourse(@RequestBody Integer courseId, |
| | | @RequestBody Integer stuId, |
| | | @RequestBody Integer appUserId); |
| | | @PostMapping("/base/coursePack/continuingCourse") |
| | | StudentOfCourseVo getStudentCourse(@RequestParam("courseId") Integer courseId, |
| | | @RequestParam("stuId") Integer stuId, |
| | | @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); |
| | | |
| | | } |
| | |
| | | public class CourseHoursType { |
| | | |
| | | @ApiModelProperty(value = "课时id") |
| | | private Integer courseConfigId; |
| | | private Long courseConfigId; |
| | | |
| | | @ApiModelProperty(value = "课时数") |
| | | private Integer courseHourNums; |
| | |
| | | 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); |
| | | } |