package com.ruoyi.web.controller.warehouse.reportManagement;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.finance.domain.TWareHouseFees;
import com.ruoyi.finance.service.ITFeeService;
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 java.util.List;
import java.util.Map;

/**
 * 利润总账Controller
 *
 * @author ruoyi
 * @date 2020-12-23
 */
@RestController
@RequestMapping("/warehouseBusiness/profit")
public class ProfitController extends BaseController {

    @Autowired
    private ITFeeService tFeeService;

    /**
     * 查询应收总账列表
     */
    @PreAuthorize("@ss.hasPermi('warehouseBusiness:profit:list')")
    @GetMapping("/list")
    public TableDataInfo chargeList(TWareHouseFees tWareHouseFees) {
        startPage();
        List<Map<String, Object>> list = tFeeService.warehouseBillsFeesProfitList(tWareHouseFees);
        return getDataTable(list);
    }

    /**
     * 导出库存总账列表
     *//*
    @PreAuthorize("@ss.hasPermi('warehouseBusiness:receivable:export')")
    @Log(title = "库存总账", businessType = BusinessType.EXPORT)
    @GetMapping("/export")
    public AjaxResult export(TWhgenleg tWhgenleg) {
        List<TWhgenleg> list = tWhgenlegService.selectTWhgenlegList(tWhgenleg);
        ExcelUtil<TWhgenleg> util = new ExcelUtil<TWhgenleg>(TWhgenleg.class);
        return util.exportExcel(list, "whgenleg");
    }*/



}
