KKSU
2023-12-13 e89fa51bb8592aae31ed345400c5a632e394739d
src/main/java/cc/mrbird/febs/mall/controller/ViewNewsController.java
@@ -8,6 +8,7 @@
import cc.mrbird.febs.mall.entity.*;
import cc.mrbird.febs.mall.mapper.DataDictionaryCustomMapper;
import cc.mrbird.febs.mall.mapper.MallProductBuyMapper;
import cc.mrbird.febs.mall.mapper.MallProductBuyRecordMapper;
import cc.mrbird.febs.mall.mapper.MallProductNftMapper;
import cc.mrbird.febs.mall.service.IMallNewsInfoService;
import cn.hutool.core.util.ObjectUtil;
@@ -31,7 +32,17 @@
    private final IMallNewsInfoService mallNewsInfoService;
    private final MallProductNftMapper mallProductNftMapper;
    private final MallProductBuyMapper mallProductBuyMapper;
    private final MallProductBuyRecordMapper mallProductBuyRecordMapper;
    private final DataDictionaryCustomMapper dataDictionaryCustomMapper;
    /**
     * 用户留言
     */
    @GetMapping("productMemberSpeak")
    @RequiresPermissions("productMemberSpeak:view")
    public String productMemberSpeak() {
        return FebsUtil.view("modules/news/productMemberSpeak");
    }
    /**
     * NFT预约产品
@@ -73,6 +84,15 @@
    }
    /**
     * 用户NFT预约列表
     */
    @GetMapping("productBuyListNew")
    @RequiresPermissions("productBuyListNew:view")
    public String productBuyListNew() {
        return FebsUtil.view("modules/news/productBuyListNew");
    }
    /**
     * 用户NFT提现列表
     */
    @GetMapping("productSellList")
@@ -91,6 +111,32 @@
        MallProductBuy mallProductBuy = mallProductBuyMapper.selectById(id);
        model.addAttribute("mallProductBuy", mallProductBuy);
        return FebsUtil.view("modules/news/productSellPick");
    }
    /**
     * 用户预约打款记录--确认支付
     * @return
     */
    @GetMapping("buyRecordPay/{id}")
    @RequiresPermissions("buyRecordPay:update")
    public String buyRecordPay(@PathVariable long id, Model model) {
        MallProductBuyRecord mallProductBuyRecord = mallProductBuyRecordMapper.selectById(id);
        model.addAttribute("mallProductBuyRecord", mallProductBuyRecord);
        return FebsUtil.view("modules/news/buyRecordPay");
    }
    /**
     * 用户预约打款记录--凭证
     * @return
     */
    @GetMapping("buyRecordImg/{id}")
    @RequiresPermissions("buyRecordImg:update")
    public String buyRecordImg(@PathVariable long id, Model model) {
        MallProductBuyRecord mallProductBuyRecord = mallProductBuyRecordMapper.selectById(id);
        model.addAttribute("mallProductBuyRecord", mallProductBuyRecord);
        return FebsUtil.view("modules/news/buyRecordImg");
    }
    /**
@@ -114,6 +160,33 @@
        if (startTimeDic != null) {
            gfaBasicSetDto.setEndTime(endCntDic.getValue());
        }
        gfaBasicSetDto.setFrozenFcmCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getType(),
                DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getCode()).getValue());
        gfaBasicSetDto.setOutFcmFee(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.OUT_FCM_FEE.getType(),
                DataDictionaryEnum.OUT_FCM_FEE.getCode()).getValue());
        gfaBasicSetDto.setFcmPrice(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.FCM_PRICE.getType(),
                DataDictionaryEnum.FCM_PRICE.getCode()).getValue());
        gfaBasicSetDto.setFcmDesToryCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.FCM_DESTORY_CNT.getType(),
                DataDictionaryEnum.FCM_DESTORY_CNT.getCode()).getValue());
        gfaBasicSetDto.setFcmDesToryCnt(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.FCM_DESTORY_CNT.getType(),
                DataDictionaryEnum.FCM_DESTORY_CNT.getCode()).getValue());
        gfaBasicSetDto.setFcmDesToryTotal(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.FCM_DESTORY_TOTAL.getType(),
                DataDictionaryEnum.FCM_DESTORY_TOTAL.getCode()).getValue());
        gfaBasicSetDto.setNftFee(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.NFT_FEE.getType(),
                DataDictionaryEnum.NFT_FEE.getCode()).getValue());
        gfaBasicSetDto.setOutFcmMin(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.OUT_FCM_MIN.getType(),
                DataDictionaryEnum.OUT_FCM_MIN.getCode()).getValue());
        gfaBasicSetDto.setNftMin(dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.NFT_MIN.getType(),
                DataDictionaryEnum.NFT_MIN.getCode()).getValue());
        model.addAttribute("gfaBasicSet", gfaBasicSetDto);
        return FebsUtil.view("modules/news/gfaBasicSet");
    }