KKSU
2023-11-28 bc26bbd27b75ab2f8ffc79a5a5fe25206f15abc7
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,6 +32,7 @@
    private final IMallNewsInfoService mallNewsInfoService;
    private final MallProductNftMapper mallProductNftMapper;
    private final MallProductBuyMapper mallProductBuyMapper;
    private final MallProductBuyRecordMapper mallProductBuyRecordMapper;
    private final DataDictionaryCustomMapper dataDictionaryCustomMapper;
    /**
@@ -73,6 +75,15 @@
    }
    /**
     * 用户NFT预约列表
     */
    @GetMapping("productBuyListNew")
    @RequiresPermissions("productBuyListNew:view")
    public String productBuyListNew() {
        return FebsUtil.view("modules/news/productBuyListNew");
    }
    /**
     * 用户NFT提现列表
     */
    @GetMapping("productSellList")
@@ -93,6 +104,32 @@
        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");
    }
    /**
     * 基础设置
     * @param model