| | |
| | | wrapper.in(AppUserWithdraw::getAppUserId,collect); |
| | | } |
| | | if (courseDTO.getPaymentStatus()!=null && courseDTO.getPaymentStatus()==1){ |
| | | wrapper.eq(AppUserWithdraw::getId,0); |
| | | wrapper.eq(AppUserWithdraw::getWithdrawStatus,0); |
| | | }else if (courseDTO.getPaymentStatus()!=null &&(courseDTO.getPaymentStatus()==2 || courseDTO.getPaymentStatus()==3)){ |
| | | List<Integer> integers = new ArrayList<>(); |
| | | integers.add(1); |
| | |
| | | String startTime =null; |
| | | String endTime =null; |
| | | String[] split = courseDTO.getTime().split(" - "); |
| | | startTime = split[0]+"00:00:00"; |
| | | endTime = split[1]+"23:59:59"; |
| | | startTime = split[0]+" 00:00:00"; |
| | | endTime = split[1]+" 23:59:59"; |
| | | wrapper.between(AppUserWithdraw::getWithdrawTime,startTime,endTime); |
| | | } |
| | | List<AppUserWithdraw> list = withdrawService.list(wrapper); |
| | |
| | | String startTime =null; |
| | | String endTime =null; |
| | | String[] split = courseDTO.getTime().split(" - "); |
| | | startTime = split[0]+"00:00:00"; |
| | | endTime = split[1]+"23:59:59"; |
| | | startTime = split[0]+" 00:00:00"; |
| | | endTime = split[1]+" 23:59:59"; |
| | | wrapper.between(AppUserWithdraw::getWithdrawTime,startTime,endTime); |
| | | } |
| | | List<AppUserWithdraw> list = withdrawService.list(wrapper); |
| | |
| | | Long userId = loginUser.getUserid(); |
| | | |
| | | appUserWithdraw.setAppUserId(userId); |
| | | Boolean flag = redisService.hasKey(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone()); |
| | | if(!flag){ |
| | | return R.fail("验证码已失效,请重新获取"); |
| | | } |
| | | String code = redisService.getCacheObject(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone()); |
| | | if (!appUserWithdraw.getCode().equals(code)) { |
| | | return R.fail("验证码不正确"); |
| | | } |
| | | // Boolean flag = redisService.hasKey(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone()); |
| | | // if(!flag){ |
| | | // return R.fail("验证码已失效,请重新获取"); |
| | | // } |
| | | // String code = redisService.getCacheObject(CacheConstants.ADD_CARD_PHONE_CODE_PREFIX + appUserWithdraw.getCellPhone()); |
| | | // if (!appUserWithdraw.getCode().equals(code)) { |
| | | // return R.fail("验证码不正确"); |
| | | // } |
| | | appUserBankService.save(appUserWithdraw); |
| | | return R.ok(); |
| | | } |