| | |
| | | } |
| | | } |
| | | classInfoVo.setCourseList(courseList); |
| | | List<ExerciseVideo> stuCourseOfVideoList = new ArrayList<>(); |
| | | ExerciseVideo video = new ExerciseVideo(); |
| | | video.setVideoUrl("https://media.w3.org/2010/05/sintel/trailer.mp4"); |
| | | video.setVideoCoverImgUrl("https://img1.baidu.com/it/u=1614146743,3691458181&fm=253&fmt=auto&app=120&f=JPEG?w=605&h=383"); |
| | | video.setVideoName("课后练习足球课"); |
| | | stuCourseOfVideoList.add(video); |
| | | |
| | | ExerciseVideo exerciseVideo = new ExerciseVideo(); |
| | | exerciseVideo.setVideoUrl("https://media.w3.org/2010/05/sintel/trailer.mp4"); |
| | | exerciseVideo.setVideoCoverImgUrl("https://img0.baidu.com/it/u=1492570361,4260963468&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500"); |
| | | exerciseVideo.setVideoName("篮球课"); |
| | | stuCourseOfVideoList.add(exerciseVideo); |
| | | // TODO: 2023/8/3 List<ExerciseVideo> stuCourseOfVideoList1 = voclClient.getStuCourseOfVideoList(); |
| | | List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); |
| | | System.out.println(stuCourseOfVideoList); |
| | | classInfoVo.setExerciseVideoList(stuCourseOfVideoList); |
| | | }else { |
| | | classInfoVo.setIsThere(2); |
| | |
| | | queryWrapper.in(PostCourseVideo::getCoursePackageId,courseIds); |
| | | } |
| | | videoList = pcvMapper.selectList(queryWrapper); |
| | | System.out.println(videoList); |
| | | if (videoList.size() > 0){ |
| | | List<Integer> videoIds = videoList.stream().map(PostCourseVideo::getCourseId).collect(Collectors.toList()); |
| | | List<UserVideoDetails> userVideoDetails = uvdmapper.selectList(new QueryWrapper<UserVideoDetails>() |
| | |
| | | BenefitsVideos videosWithIds = bfvoClient.getVideosWithIds(userVideoDetail.getCourseId()); |
| | | response.setVideoId(userVideoDetail.getCourseId()); |
| | | response.setCoverImage(videosWithIds.getCover()); |
| | | if (null != search.getSearch()){ |
| | | // 根据正则模糊匹配 |
| | | String pattern = ".*" + search.getSearch() + ".*"; |
| | | Pattern regex = Pattern.compile(pattern); |
| | | Matcher matcher = regex.matcher(videosWithIds.getName()); |
| | | if (matcher.matches()) { |
| | | response.setVideoName(videosWithIds.getName()); |
| | | } |
| | | }else { |
| | | response.setVideoName(videosWithIds.getName()); |
| | | } |
| | | response.setSynopsis(videosWithIds.getIntroduction()); |
| | | response.setIntegral(videosWithIds.getIntegral()); |
| | | response.setStudyStatus(userVideoDetail.getState()); |
| | | responses.add(response); |
| | | } |
| | | Collections.sort(responses, Comparator.comparing(AppUserVideoResponse::getStudyStatus)); |
| | | } |
| | | if (ToolUtil.isNotEmpty(search.getSearch())){ |
| | | responses = responses.stream() |
| | | .filter(person -> person.getPackageName().contains(search.getSearch())) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | if (ToolUtil.isNotEmpty(search.getCourseTypeId())){ |
| | | responses = responses.stream() |
| | | .filter(person -> Objects.equals(person.getCoursePackageId(), search.getCourseTypeId())) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | } |
| | | return responses; |
| | |
| | | List<RegisterCourseVo> courseVos = new ArrayList<>(); |
| | | List<TCoursePackagePayment> tCoursePackagePayments = this.list(new QueryWrapper<TCoursePackagePayment>() |
| | | .eq("appUserId",appUserId )); |
| | | System.out.println(tCoursePackagePayments); |
| | | if (tCoursePackagePayments.size() > 0){ |
| | | for (TCoursePackagePayment tCoursePackagePayment : tCoursePackagePayments) { |
| | | TCoursePackage coursePackage = tcpmapper.selectById(tCoursePackagePayment.getCoursePackageId()); |
| | |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryCity(@Param("provinceCode") String provinceCode, @Param("cityCode") String cityCode); |
| | | |
| | | List<Map<String, Object>> queryListOfpage(@Param("provinceCode") String provinceCode, |
| | | @Param("cityCode") String cityCode, |
| | | @Param("cityManagerId") Integer cityManagerId, |
| | | @Param("storeName") String storeName, |
| | | @Param("page") Page<Map<String, Object>> page); |
| | | |
| | | |
| | | } |
| | |
| | | import com.dsh.guns.core.util.ToolUtil; |
| | | import com.dsh.guns.modular.system.model.Region; |
| | | import com.dsh.guns.modular.system.service.IRegionService; |
| | | import com.dsh.guns.modular.system.service.IStoreService; |
| | | import com.dsh.guns.modular.system.util.OBSUploadUtil; |
| | | import org.apache.commons.beanutils.ConvertUtils; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | @Resource |
| | | private CouponClient client; |
| | | |
| | | @Resource |
| | | private IStoreService storeService; |
| | | |
| | | /** |
| | | * 跳转到优惠券管理首页 |
| | | */ |
| | |
| | | |
| | | @RequestMapping("/storeList") |
| | | @ResponseBody |
| | | public Object listOfStore(){ |
| | | public Object listOfStore(Integer province,Integer cityCode,Integer cityManagerId,String storeName){ |
| | | Region provinceRegion = regiService.getById(province); |
| | | Region cityRegion = regiService.getById(cityCode); |
| | | Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage(); |
| | | List<Map<String,Object>> storeList = storeService.queryListOfpage(provinceRegion.getCode(),cityRegion.getCode(),cityManagerId,storeName,page); |
| | | |
| | | |
| | | return null; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryCity(String provinceCode, String cityCode); |
| | | |
| | | List<Map<String, Object>> queryListOfpage(String provinceCode, String cityCode, Integer cityManagerId, String storeName, Page<Map<String, Object>> page); |
| | | |
| | | } |
| | |
| | | public List<Map<String, Object>> queryCity(String provinceCode, String cityCode) { |
| | | return this.baseMapper.queryCity(provinceCode, cityCode); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> queryListOfpage(String provinceCode, String cityCode, Integer cityManagerId, String storeName, Page<Map<String, Object>> page) { |
| | | return this.baseMapper.queryListOfpage(provinceCode,cityCode,cityManagerId,storeName,page); |
| | | } |
| | | } |
| | |
| | | group by cityCode |
| | | ) as aa order by aa.code |
| | | </select> |
| | | <select id="queryListOfpage" resultType="java.util.Map"> |
| | | SELECT id, cityManagerId, province, city, `name` |
| | | from t_store |
| | | </select> |
| | | </mapper> |
| | |
| | | {field: 'selectItem', radio: true}, |
| | | {title: '选择', field: '', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '所属账号', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在省市', field: 'useScope', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "全国", 2: "指定城市", 3: "指定门店"}[value] |
| | | } |
| | | }, |
| | | {title: '门店名称', field: 'type', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (value, row, index) { |
| | | return {1: "满减券", 2: "代金券", 3: "体验券"}[value] |
| | | }}, |
| | | {title: '所属账号', field: 'accountName', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在省市', field: 'provinceCity', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '门店名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | | ]; |
| | | }; |
| | | |