package com.fjhx.jxst.mapper.sales;

import com.fjhx.jxst.entity.sales.po.SalesContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.jxst.entity.sales.vo.SalesContractVo;
import com.fjhx.jxst.entity.statement.bo.SettlementBo;
import com.ruoyi.common.utils.wrapper.IWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 销售合同 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-05-16
 */
public interface SalesContractMapper extends BaseMapper<SalesContract> {

    /**
     * 销售合同分页
     */
    Page<SalesContractVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<SalesContract> wrapper);

    /**
     * 利润结算表
     */
    Page<SettlementBo> getProfitClearingPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<SalesContract> wrapper);

    /**
     * 利润结算表头部统计
     */
    SettlementBo getProfitSettlementHead(@Param("ew") IWrapper<SalesContract> wrapper);

}
