| | |
| | | if(ObjectUtil.isEmpty(userAccount)){ |
| | | return Result.error("请重新登录,未查询到你的信息!"); |
| | | } |
| | | |
| | | |
| | | long count = userKycService.count(new LambdaQueryWrapper<>(UserKyc.class) |
| | | .eq(UserKyc::getIdCard, dto.getIdCard()) |
| | | .eq(UserKyc::getState, 1) |
| | | ); |
| | | if(count > 0){ |
| | | return Result.error("该身份证已实名认证!"); |
| | | } |
| | | |
| | | UserKyc userKyc = userKycService.getOne(new LambdaQueryWrapper<>(UserKyc.class) |
| | | .eq(UserKyc::getUserId, userAccount.getId()) |
| | | ); |
| | |
| | | */ |
| | | @GetMapping("/getAccountPassword") |
| | | @Transactional |
| | | public AjaxResult getAccountPassword(@RequestParam(value = "account") String account) { |
| | | public AjaxResult getAccountPassword(@RequestParam(value = "account",required = false) String account) { |
| | | if(ObjectUtil.isEmpty(account)){ |
| | | return AjaxResult.error("请输入查询账号!"); |
| | | } |
| | | UserAccount userAccount = userAccountService.getOne(new LambdaQueryWrapper<>(UserAccount.class) |
| | | .eq(UserAccount::getAccount, account) |
| | | ); |