package com.gxwebsoft.credit.service;

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

import java.util.List;

/**
 * 司法案件Service
 *
 * @author 科技小王子
 * @since 2025-12-16 15:23:58
 */
public interface CreditJudiciaryService extends IService<CreditJudiciary> {

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

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

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

    /**
     * 根据名称查询
     *
     * @param name 名称
     * @return CreditJudiciary
     */
    CreditJudiciary getByName(String name);

}
