package com.jwipc.contract.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.contract.entity.Contract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.contract.model.po.ContractPO;
import com.jwipc.contract.model.po.ContractReportPO;
import com.jwipc.contract.model.po.DigitalSealConfigDTO;
import com.jwipc.contract.model.query.ContractMangeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zx
 * @since 2024-03-07
 */
public interface ContractMapper extends BaseMapper<Contract> {

    void removeByRoleIdAndMenuType(String conId);

    ContractPO getDataById(String conId);

    DigitalSealConfigDTO selectESignDetail(@Param("companyCode") String companyCode, @Param("sealType") String sealType);

    List<ContractReportPO> reportPage(@Param("query") ContractMangeQuery query);

    List<ContractReportPO> reportPage(Page<Contract> dbPage, @Param("query") ContractMangeQuery query);
}
