| | |
| | | // Date now = new Date(); |
| | | RechargeBlockchainOrder recharge = getById(id); |
| | | if (recharge == null) { |
| | | throw new YamiShopBindException("参数错误!"); |
| | | recharge = findByOrderNo(id); |
| | | if (recharge == null) { |
| | | throw new YamiShopBindException("参数错误!"); |
| | | } |
| | | } |
| | | User party = userService.getById(recharge.getPartyId()); |
| | | if (party == null) { |
| | |
| | | // |
| | | // walletService.update(wallet.getUserId(), amount1); |
| | | |
| | | CapitaltWallet capitaltWallet = capitaltWalletService.getOne(new LambdaQueryWrapper<>(CapitaltWallet.class) |
| | | .eq(CapitaltWallet::getUserId, recharge.getPartyId()).last(" limit 1 ")); |
| | | CapitaltWallet capitaltWallet = capitaltWalletService.getUserIdWallet(recharge.getPartyId()); |
| | | double amount_before = capitaltWallet.getMoney().doubleValue(); |
| | | capitaltWalletService.update(capitaltWallet,amount1); |
| | | |