| | |
| | | dappNftActivationDao.insert(nftActivation); |
| | | |
| | | ActiveNftListVo nft = new ActiveNftListVo(); |
| | | nft.setStatus(3); |
| | | nft.setCount(box.getIndex()); |
| | | nft.setId(nftActivation.getId()); |
| | | nft.setRemain(DateUtil.between(time, expire, DateUnit.SECOND)); |
| | |
| | | fundFlow.setNewestPrice(AppContants.NFT_ACTIVE_PRICE); |
| | | dappFundFlowDao.insert(fundFlow); |
| | | |
| | | nftActive.setCount(nftActive.getCount() - activeDto.getCount()); |
| | | int count = nftActive.getCount() - activeDto.getCount(); |
| | | if (count == 0) { |
| | | nftActive.setStatus(3); |
| | | } |
| | | |
| | | nftActive.setCount(count); |
| | | dappNftActivationDao.updateById(nftActive); |
| | | } |
| | | |