package com.gxwebsoft.credit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.credit.entity.CreditHistoricalLegalPerson;
import com.gxwebsoft.credit.param.CreditHistoricalLegalPersonParam;

import java.util.List;

/**
 * 历史法定代表人Service
 *
 * @author 科技小王子
 * @since 2026-01-07 13:52:14
 */
public interface CreditHistoricalLegalPersonService extends IService<CreditHistoricalLegalPerson> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<CreditHistoricalLegalPerson>
     */
    PageResult<CreditHistoricalLegalPerson> pageRel(CreditHistoricalLegalPersonParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<CreditHistoricalLegalPerson>
     */
    List<CreditHistoricalLegalPerson> listRel(CreditHistoricalLegalPersonParam param);

    /**
     * 根据id查询
     *
     * @param id ID
     * @return CreditHistoricalLegalPerson
     */
    CreditHistoricalLegalPerson getByIdRel(Integer id);

}
