| | |
| | | VipPaymentVO res = new VipPaymentVO(); |
| | | res.setHeadImg(appUser.getHeadImg()); |
| | | res.setName(appUser.getName()); |
| | | res.setIsVip(appUser.getIsVip()); |
| | | if (appUser.getVipEndTime()==null){ |
| | | res.setIsVip(0); |
| | | }else if (appUser.getVipEndTime().before(new Date())){ |
| | | res.setIsVip(0); |
| | | }else{ |
| | | res.setIsVip(1); |
| | | } |
| | | appUserService.updateById(appUser); |
| | | List<Vip> vips = vipClient.listAll(); |
| | | res.setVipList(vips); |
| | | } catch (Exception e) { |
| | |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | // |
| | | // /** |
| | | // * 购买年度会员支付微信回调V3版本回调 |
| | |
| | | |
| | | @PostMapping("/appUser/queryAppUserByIds") |
| | | @ResponseBody |
| | | public List<TAppUser> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){ |
| | | LambdaQueryWrapper<TAppUser> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | public List<TStudent> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){ |
| | | LambdaQueryWrapper<TStudent> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | if(ToolUtil.isNotEmpty(search.getIdCard())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getIdCard, search.getIdCard()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getIdCard, search.getIdCard()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(search.getPhone())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getPhone, search.getPhone()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getPhone, search.getPhone()); |
| | | } |
| | | if(ToolUtil.isNotEmpty(search.getName())){ |
| | | tAppUserLambdaQueryWrapper.eq(TAppUser::getName, search.getName()); |
| | | tAppUserLambdaQueryWrapper.eq(TStudent::getName, search.getName()); |
| | | } |
| | | tAppUserLambdaQueryWrapper.in(TAppUser::getId,search.getUseIds()); |
| | | return appUserService.list(tAppUserLambdaQueryWrapper); |
| | | tAppUserLambdaQueryWrapper.in(TStudent::getId,search.getUseIds()); |
| | | return studentService.list(tAppUserLambdaQueryWrapper); |
| | | } |
| | | } |