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

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.warehouseBusiness.domain.TWarehouseAgreement;
import com.ruoyi.warehouseBusiness.service.ITWarehouseAgreementService;
import org.springframework.beans.factory.annotation.Autowired;
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-11
 */
@RestController
@RequestMapping("/warehouseBusiness/agreement")
public class TWarehouseAgreementController extends BaseController {
    @Autowired
    private ITWarehouseAgreementService tWarehouseAgreementService;

    /**
     * 查询协议提醒列表
     */
    @GetMapping("/list")
    public TableDataInfo list(TWarehouseAgreement tWarehouseAgreement) {
        startPage();
        List<Map<String, Object>> list = tWarehouseAgreementService.selectTWarehouseAgreementList1(tWarehouseAgreement);
        return getDataTable(list);
    }

}
