| | |
| | | @Transactional |
| | | public Result kycApply(UserKycDto dto) { |
| | | try { |
| | | UserAccount userAccount = userAccountService.getById(dto.getUserId()); |
| | | UserAccount userAccount = userAccountService |
| | | .getOne(new LambdaQueryWrapper<UserAccount>() |
| | | .eq(UserAccount::getAccount,dto.getAccount())); |
| | | if(ObjectUtil.isEmpty(userAccount)){ |
| | | return Result.error("请重新登录,未查询到你的信息!"); |
| | | } |
| | |
| | | userKyc.setState(approvalStatus); |
| | | userKyc.setMessage(message); |
| | | userKyc.setUpdatedAt(new Date()); |
| | | |
| | | userKycService.updateById(userKyc); |
| | | UserAccount userAccount = userAccountService.getById(userKyc.getUserId()); |
| | | userAccount.setKycStatus(approvalStatus); |
| | | userAccountService.updateById(userAccount); |