| | |
| | | private String alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAouYvZ1v4RiydwNOnGcU0Hb4hQu0x6XUooaE2Bi6/atNOobtFdunnATGP6OMOW7yF9DpP8qH5mbFXAiaQD721y/7qlayI50UcV4mngRU4ZcaAVE3bp721Eg2H85RISa+Tb1CiOh+pc9p4l5UBseKsvB2ruHHForfZDPI8FL7AVUKBYCQPsa4zL6KAO2C6KULaTg/lCa+bYQKU0n9ca569VtdsqJUyxB9eSZjVd+9nKl62FLqp2NELGj7cXqiVBgDnBnVS5ZUO3mrBM5z/AxQbw3RwE3JqdkhzUA1BFjejAlT2zIGNOjUFagF8ao0wGElYfuk0bum6Hz5qWAt02QdNNwIDAQAB";//支付宝应用公钥 |
| | | |
| | | private String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmu8n/4yTHWbn7VOrNc9OsLtDL1bEQ8gC1dHkj8Wy5z0mkaOsjJRIG/28ze12M0V8jdCKuuDr5Z1OPKiqf+XO3ypguEh+mYUVMBM/cZodDFQfTY1TKLWjvQCuaqlA+QUTCK6f7T7stsgyQ1o9Jj0rXZDz6PM4QHSTzjrLIBaeqM5WIBvH+fy/X+QG5Utd+/UT0kc0JyvuKhZ65yVUd/C9VcwJJAPliRsAQNrqYterwAJ9zvw9tF11wj9W0XgJ8Ccu4x3gR1vrlLRJJo/OA97RmxPQ+5hSacWQZCUd1dwiBq+YCrKVHGTj14izRHXrLc0yBlRXo7tBOIqcy3IsvKVthQIDAQAB";//支付宝支付公钥 |
| | | @Resource |
| | | private UserConponClient userConponClient; |
| | | @Autowired |
| | | private TAppUserService appUserService; |
| | | @Resource |
| | | private MerChandiseClient merChandiseClient; |
| | | |
| | | // 对数据进行分页处理的方法 |
| | | private static Page<Goods> getPage(List<Goods> dataList, Pageable pageable) { |
| | | int start = (int) pageable.getOffset(); |
| | | int end = Math.min((start + pageable.getPageSize()), dataList.size()); |
| | | return new PageImpl<>(dataList.subList(start, end), pageable, dataList.size()); |
| | | } |
| | | |
| | | @Override |
| | | public List<QueryAppUserVO> listAll(QueryAppUser query) { |
| | |
| | | |
| | | return map; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<SelectDto> getSelects(List<Integer> studentIds) { |
| | |
| | | public List<TAppUser> queryAPPUserByNameAndPhone(AppUserByNameAndPhoneDTO dto) { |
| | | return appUserMapper.queryAPPUserByNameAndPhone(dto); |
| | | } |
| | | |
| | | @Override |
| | | public List<YearData> getYearUserCount(UserInfoQueryDTO dto) { |
| | | return appUserMapper.getYearUserCount(dto); |
| | |
| | | public WeekData getWeekUserCount4(UserInfoQueryDTO dto) { |
| | | return appUserMapper.getWeekUserCount4(dto); |
| | | } |
| | | |
| | | @Override |
| | | public WeekData getWeekUserCount3(UserInfoQueryDTO dto) { |
| | | return appUserMapper.getWeekUserCount3(dto); |
| | | } |
| | | |
| | | @Override |
| | | public WeekData getWeekUserCount2(UserInfoQueryDTO dto) { |
| | | return appUserMapper.getWeekUserCount2(dto); |
| | | } |
| | | |
| | | @Override |
| | | public WeekData getWeekUserCount1(UserInfoQueryDTO dto) { |
| | | return appUserMapper.getWeekUserCount1(dto); |
| | |
| | | public List<GroupCityInfoVO> groupCityInfo(UserInfoQueryDTO dto) { |
| | | return appUserMapper.groupCityInfo(dto); |
| | | } |
| | | |
| | | @Override |
| | | public ClassInfoVo queryUserOfStus(Integer id,Integer uid) { |
| | | TAppUser tAppUser = this.baseMapper.selectById(uid); |
| | | ClassInfoVo classInfoVo = new ClassInfoVo(); |
| | | // if (ToolUtil.isNotEmpty(tAppUser)){ |
| | | |
| | | // |
| | | |
| | | List<TStudent> tStudents = new ArrayList<>(); |
| | | if (id!=null) { |
| | | tStudents = tsmapper.selectList(new QueryWrapper<TStudent>() |
| | |
| | | } |
| | | List<RegisteredCourse> courseList = new ArrayList<>(); |
| | | List<StuCourseResp> stuCoursePayment = paymentClient.getStuCoursePayment(tStudent.getId()); |
| | | List<Integer> coursePackIds = new ArrayList<>(); |
| | | if (stuCoursePayment.size() > 0){ |
| | | coursePackIds = stuCoursePayment.stream().map(StuCourseResp::getCourseId).collect(Collectors.toList()); |
| | | for (StuCourseResp tCoursePackagePayment : stuCoursePayment) { |
| | | RegisteredCourse course = new RegisteredCourse(); |
| | | course.setId(tCoursePackagePayment.getId()); |
| | |
| | | } |
| | | } |
| | | classInfoVo.setCourseList(courseList); |
| | | // List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); |
| | | List<ExerciseVideo> query = voclClient.query(tStudent.getId()); |
| | | classInfoVo.setExerciseVideoList(query); |
| | | |
| | |
| | | classInfoVo.setImgs(tImgConfigs.get(0).getContent()); |
| | | } |
| | | } |
| | | // } |
| | | return classInfoVo; |
| | | } |
| | | |
| | | /** |
| | | * 处理数据 |
| | | * |
| | | * @param storeOfCourses |
| | | * @param longitude |
| | | * @param latitude |
| | |
| | | return courseVenues; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取短信验证码 |
| | | * |
| | | * @param type 1:登录,2:注册,3:修改密码,4:忘记密码 |
| | | * @param phone |
| | | * @return |
| | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 注册用户 |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 账号密码登录 |
| | | * |
| | | * @param phone |
| | | * @param password |
| | | * @return |
| | |
| | | return ResultUtil.success(token); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 验证码登录 |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | |
| | | return ResultUtil.success(token); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信登录 |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | |
| | | return ResultUtil.success(map); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取JWT token和存储个人信息 |
| | | * |
| | | * @param appUser |
| | | * @return |
| | | */ |
| | |
| | | return token; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改密码 |
| | | * |
| | | * @param phone |
| | | * @param code |
| | | * @param password |
| | |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 定时任务修改到期会员的状态 |
| | | */ |
| | |
| | | this.baseMapper.membershipEnd(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取加入玩湃首页数据 |
| | | * |
| | | * @param lon |
| | | * @param lat |
| | | * @return |
| | |
| | | return goods; |
| | | } |
| | | |
| | | // 对数据进行分页处理的方法 |
| | | private static Page<Goods> getPage(List<Goods> dataList, Pageable pageable) { |
| | | int start = (int) pageable.getOffset(); |
| | | int end = Math.min((start + pageable.getPageSize()), dataList.size()); |
| | | return new PageImpl<>(dataList.subList(start, end), pageable, dataList.size()); |
| | | } |
| | | |
| | | @Override |
| | | public ProductDetailsVo productDetails(Integer goodId, Integer goodsType ) { |
| | | ProductDetailRequest detailsVo = new ProductDetailRequest(); |
| | |
| | | detailsVo.setGoodId(goodId); |
| | | return mcClient.getGoodDetailsWithId(detailsVo); |
| | | } |
| | | |
| | | @Override |
| | | public ProductDetailsVo goodsDetailsOne(Integer goodId ) { |
| | | return mcClient.getGoodDetailsWithIdOne(goodId); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @Resource |
| | | private UserConponClient userConponClient; |
| | | |
| | | @Autowired |
| | | private TAppUserService appUserService; |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional |
| | | public synchronized ResultUtil productRedemptionOperation(Integer userIdFormRedis, GoodsExchangeVo exchangeType) { |
| | | System.out.println("exchangeType:--->"); |
| | | |
| | | |
| | | |
| | | ReturnModel returnModel = new ReturnModel(); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | System.out.println(exchangeType); |
| | | try { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); |
| | | String code = sdf.format(new Date()) + UUIDUtil.getNumberRandom(5); |
| | | PointsMerchandise merchandise = mcClient.selectPointsMerchandiseById(exchangeType.getGoodId()); |
| | | |
| | | |
| | | |
| | | |
| | | if (ToolUtil.isEmpty(merchandise)){ |
| | |
| | | if (ToolUtil.isNotEmpty(count1) && count1 >= merchandise.getQuantityIssued()){ |
| | | return ResultUtil.error("超过发放数量"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | for (int i = 0; i < goodsNums; i++) { |
| | |
| | | return alipay; |
| | | } |
| | | |
| | | |
| | | |
| | | @Resource |
| | | private MerChandiseClient merChandiseClient; |
| | | |
| | | |
| | | public void moneyOut(String outNum,String tradeNo) throws AlipayApiException { |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | // RoyaltyDetailInfos royaltyDetailInfos1 = new RoyaltyDetailInfos(); |
| | | // royaltyDetailInfos1.setTransOutType("loginName"); |
| | | // royaltyDetailInfos1.setTransOut("happysports@weparklife.com"); |
| | |
| | | // TCoursePackage byId = coursePackageService.getById(one.getCoursePackageId()); |
| | | |
| | | |
| | | |
| | | OperatorUser operatorUser = storeClient.queryByStoreId(storeId); |
| | | |
| | | |
| | | |
| | | // Integer paymentCompetitions = competitionsClient.queryByCode(outTradeNo); |
| | |
| | | // stores.add(paymentCompetitions); |
| | | // stores.add(siteBookings); |
| | | // OperatorUser operatorUser = siteClient.queryOperator(stores); |
| | | |
| | | |
| | | |
| | | |
| | | OpenApiRoyaltyDetailInfoPojo op = new OpenApiRoyaltyDetailInfoPojo(); |
| | |
| | | } |
| | | return courseVenues; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |