KKSU
2024-07-06 bcac1518746956058313ac24280236d50e98c318
逻辑
3 files modified
36 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java 18 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/vo/ApiIndexInfoVo.java 8 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/vo/WalletInfoVo.java 10 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -98,6 +98,18 @@
        BigDecimal runPerk = dappFundFlowDao.selectSumRunPerkByMemberId(member.getId());
        walletInfo.setRunPerk(runPerk);
        List<DappStorage> allAddressNums = dappStorageMapper.selectListGroupByMemberId();
        walletInfo.setAddressNum(CollUtil.isEmpty(allAddressNums) ? 0 : allAddressNums.size());
        DappStorage dappStorage = dappStorageMapper.selectOneByCreateTimeDesc(0, 1);
        walletInfo.setBuChangDate(ObjectUtil.isEmpty(dappStorage) ?
                DateUtil.offsetDay(new Date(), 1) : DateUtil.offsetDay(dappStorage.getCreateTime(), 1));
        walletInfo.setBuchangChi(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.BUCAHNG_CHI.getType(),
                DataDictionaryEnum.BUCAHNG_CHI.getCode()
        ).getValue());
        return walletInfo;
    }
@@ -664,12 +676,6 @@
                DataDictionaryEnum.JI_SHU_CHI.getType(),
                DataDictionaryEnum.JI_SHU_CHI.getCode()
        ).getValue());
        List<DappStorage> dappStorages = dappStorageMapper.selectListGroupByMemberId();
        apiIndexInfoVo.setAddressNum(CollUtil.isEmpty(dappStorages) ? 0 : dappStorages.size());
        DappStorage dappStorage = dappStorageMapper.selectOneByCreateTimeDesc(0, 1);
        apiIndexInfoVo.setBuChangDate(ObjectUtil.isEmpty(dappStorage) ?
                DateUtil.offsetDay(new Date(), 1) : DateUtil.offsetDay(dappStorage.getCreateTime(), 1));
        return apiIndexInfoVo;
    }
src/main/java/cc/mrbird/febs/dapp/vo/ApiIndexInfoVo.java
@@ -4,8 +4,6 @@
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel(value = "ApiIndexInfoVo", description = "系统设置费率")
public class ApiIndexInfoVo {
@@ -27,10 +25,4 @@
    @ApiModelProperty(value = "技术")
    private String jishuChi;
    @ApiModelProperty(value = "全网持币地址数量")
    private Integer addressNum;
    @ApiModelProperty(value = "永动补偿池结束时间")
    private Date buChangDate;
}
src/main/java/cc/mrbird/febs/dapp/vo/WalletInfoVo.java
@@ -5,6 +5,7 @@
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
 * @author 
@@ -44,4 +45,13 @@
    @ApiModelProperty(value = "动态释放")
    private BigDecimal runPerk;
    @ApiModelProperty(value = "全网持币地址数量")
    private Integer addressNum;
    @ApiModelProperty(value = "永动补偿池")
    private String buchangChi;
    @ApiModelProperty(value = "永动补偿池结束时间")
    private Date buChangDate;
}