| | |
| | | } else { |
| | | indexOfUserBenefirVo.setVipEndTime(""); |
| | | } |
| | | }else{ |
| | | indexOfUserBenefirVo.setVipEndTime(""); |
| | | } |
| | | return ResultUtil.success(indexOfUserBenefirVo); |
| | | } catch (Exception e) { |
| | |
| | | benefirVo.setUserName(appUser.getName()); |
| | | benefirVo.setWpCoin(ToolUtil.isEmpty(appUser.getPlayPaiCoins()) ? 0 : appUser.getPlayPaiCoins()); |
| | | benefirVo.setUserIntegral(ToolUtil.isEmpty(appUser.getIntegral()) ? 0 : appUser.getIntegral()); |
| | | if (appUser.getIsVip() == 1) { |
| | | if (appUser.getIsVip()!=null&& appUser.getIsVip() == 1) { |
| | | benefirVo.setIsMember("年度会员"); |
| | | } else { |
| | | benefirVo.setIsMember("普通用户"); |
| | |
| | | } |
| | | List<UserCoupon> userCoupons = new ArrayList<>(); |
| | | if (ids.size() > 0) { |
| | | userCoupons = userCouponService.list(new QueryWrapper<UserCoupon>().eq("userId", appUserId).in("couponId", ids)); |
| | | userCoupons = userCouponService.list(new QueryWrapper<UserCoupon>().eq("userId", appUserId).in("couponId", ids) |
| | | .ne("status",3)); |
| | | } |
| | | if (pointsMerchandises.size() > 0) { |
| | | for (UserPointsMerchandise pointsMerchandise : pointsMerchandises) { |
| | |
| | | List<VipDetail> list = vipDetailService.lambdaQuery().eq(VipDetail::getVipPaymentId, id).list(); |
| | | for (VipDetail vipDetail : list) { |
| | | vipDetail.setStatus(3); |
| | | if (vipDetail.getType()==1){ |
| | | // 将优惠券修改为过期 |
| | | UserCoupon userCoupon = userCouponService.getById(vipDetail.getUserCouponId()); |
| | | userCoupon.setUserId(null); |
| | | userCoupon.setStatus(3); |
| | | userCouponService.updateById(userCoupon); |
| | | } |
| | | } |
| | | vipDetailService.updateBatchById(list); |
| | | } |
| | |
| | | if (userCoupon.getStatus() == 2) { |
| | | packageResp.setUseStatus(2); |
| | | } |
| | | if (userCoupon.getStatus() == 3) { |
| | | packageResp.setUseStatus(3); |
| | | } |
| | | respList.add(packageResp); |
| | | } |
| | | if (null != req.getCouponType()) { |
| | |
| | | private StudentHonorClient studentHonorClient; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取参赛人员名次信息 |
| | | * @param entrantRank |
| | |
| | | } |
| | | mapList.add(map); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // if(worldCupRank.getSort() == 1){ |
| | |
| | | @Override |
| | | public List<WorldCupCodeListVo> getWorldCupCodeListId(Integer worldCupId) { |
| | | List<WorldCupCompetitor> worldCupCompetitors = this.baseMapper.selectList(new LambdaQueryWrapper<WorldCupCompetitor>().eq(WorldCupCompetitor::getWorldCupId, worldCupId) |
| | | .and(w->w.isNull(WorldCupCompetitor::getEndTime).or(s->s.le(WorldCupCompetitor::getStartTime, new Date()).ge(WorldCupCompetitor::getEndTime, new Date())))) |
| | | ; |
| | | .and(w -> w.isNull(WorldCupCompetitor::getEndTime).or(s -> s.le(WorldCupCompetitor::getStartTime, new Date()).ge(WorldCupCompetitor::getEndTime, new Date())))); |
| | | List<WorldCupCodeListVo> worldCupCodeListVos = new ArrayList<>(); |
| | | |
| | | // worldCupCompetitors 通过code分组 |
| | |
| | | map.put("space_id", tGame.getSiteId() + ""); |
| | | map.put("red_sutu_id", tGame.getRed()); |
| | | map.put("blue_sutu_id", tGame.getBlue()); |
| | | map.put("api_url", "https://online.daowepark.com:443/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | // map.put("api_url", "https://online.daowepark.com:443/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | map.put("api_url", "http://221.182.45.100:1234/communityWorldCup/base/worldCup/endWorldCupCallback"); |
| | | |
| | | map.put("custom", jsonObject.toJSONString()); |
| | | |
| | | String s = HttpRequestUtil.postRequest("https://port.daowepark.com/v7/user_api/general/quickStart", map); |