package com.fjhx.sale.mapper.intermediate;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.sale.entity.intermediate.po.IntermediateContract;
import com.fjhx.sale.entity.intermediate.vo.IntermediateContractVo;
import com.ruoyi.common.utils.wrapper.IWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 中间合同 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-06-28
 */
public interface IntermediateContractMapper extends BaseMapper<IntermediateContract> {

    /**
     * 中间合同分页--未创建
     */
    Page<IntermediateContractVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<IntermediateContract> wrapper);

    /**
     * 中间合同分页--已创建
     */
    Page<IntermediateContractVo> getPage2(@Param("page") Page<Object> page, @Param("ew") IWrapper<IntermediateContract> wrapper);

    /**
     * 获取中间合同历史联系方式
     */
    List<IntermediateContractVo> contactList(@Param("ew") IWrapper<IntermediateContract> wrapper);

    String getAllIds();
}
