KKSU
2024-08-28 8c8aaaa69618d3df3333942fa9af5e5ab5cc5c6a
新增功能操作按钮,和更新了数据库数据
3 files modified
20 ■■■■■ changed files
src/main/java/cc/mrbird/febs/common/enumerates/DataDictionaryEnum.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java 12 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/common/enumerates/DataDictionaryEnum.java
@@ -5,6 +5,10 @@
@Getter
public enum DataDictionaryEnum {
    //FDH兑换标识 1-允许 0-拒绝
    COIN_CHANGE("COIN_CHANGE","COIN_CHANGE"),
    //卡牌互转标识 1-允许 0-拒绝
    CARD_CHANGE("CARD_CHANGE","CARD_CHANGE"),
    //充值金额
    USDT_PRICE("USDT_PRICE","USDT_PRICE"),
    //充值金额
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberServiceImpl.java
@@ -362,6 +362,18 @@
        );
        BigDecimal usdtPrice = new BigDecimal(usdtPriceDic.getValue()).setScale(2, BigDecimal.ROUND_DOWN);
        mallMemberVo.setUsdtPrice(usdtPrice);
        DataDictionaryCustom cardChangeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.CARD_CHANGE.getType(),
                DataDictionaryEnum.CARD_CHANGE.getCode()
        );
        mallMemberVo.setAroundType(Integer.parseInt(StrUtil.isEmpty(cardChangeDic.getValue()) ? "1" : cardChangeDic.getValue()));
        DataDictionaryCustom coinChangeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.COIN_CHANGE.getType(),
                DataDictionaryEnum.COIN_CHANGE.getCode()
        );
        mallMemberVo.setChangeType(Integer.parseInt(StrUtil.isEmpty(coinChangeDic.getValue()) ? "1" : coinChangeDic.getValue()));
        return new FebsResponse().success().data(mallMemberVo);
    }
src/main/java/cc/mrbird/febs/mall/vo/MallMemberVo.java
@@ -124,5 +124,9 @@
    private BigDecimal withdrawAmount;
    @ApiModelProperty(value = "USDT价格")
    private BigDecimal usdtPrice;
    @ApiModelProperty(value = "卡牌互转标识 1-允许 0-拒绝")
    private Integer aroundType;
    @ApiModelProperty(value = "FDH兑换标识 1-允许 0-拒绝")
    private Integer changeType;
}