package com.ruoyi.web.modules.finance.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.web.modules.finance.dto.PlatformWithdrawSummaryDetailQuery;
import com.ruoyi.web.modules.finance.dto.PlatformWithdrawSummaryQuery;
import com.ruoyi.web.modules.finance.service.IShopFundService;

/**
 * 平台端提现汇总
 */
@RestController
@RequestMapping("/agri/finance/withdrawSummary")
public class PlatformWithdrawSummaryController extends BaseController
{
    @Autowired
    private IShopFundService shopFundService;

    @PreAuthorize("@ss.hasPermi('agri:finance:withdrawSummary:summary')")
    @GetMapping("/shops")
    public TableDataInfo shops(PlatformWithdrawSummaryQuery query)
    {
        startPage();
        return getDataTable(shopFundService.listPlatformWithdrawSummary(query));
    }

    @PreAuthorize("@ss.hasPermi('agri:finance:withdrawSummary:detail')")
    @GetMapping("/details")
    public TableDataInfo details(PlatformWithdrawSummaryDetailQuery query)
    {
        startPage();
        return getDataTable(shopFundService.listPlatformWithdrawSummaryDetails(query));
    }
}
