package com.fjhx.mapper.contract;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.entity.contract.ContractPay;
import com.fjhx.params.contract.SupplierInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合同付款 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-29
 */
public interface ContractPayMapper extends BaseMapper<ContractPay> {

    List<SupplierInfo> getSupplierInfoList(@Param("ew") QueryWrapper<Object> wrapper);

    Page<Map<String, Object>> getPage(@Param("page") Page<Object> page, @Param("ew") QueryWrapper<Object> wrapper);

    Map<String, Object> statusStatistics(@Param("ew") QueryWrapper<Object> wrapper);

    Map<String, Object> cycleStatistics(@Param("ew") QueryWrapper<Object> wrapper,
                                        @Param("currentAccountBeginTime") Date currentAccountBeginTime,
                                        @Param("currentAccountEndTime") Date currentAccountEndTime);

}
