package com.sunxung.factoring.mapper.creditresolution;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunxung.factoring.entity.creditresolution.CreditResolution;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;

import java.util.List;

/**
 * <p>
 * 授信决议 Mapper 接口
 * </p>
 *
 * @author liutao
 * @since 2023-12-21
 */
public interface CreditResolutionMapper extends BaseMapper<CreditResolution> {

    /**
     * 根据项目id查询
     * @param cProjectInformationId
     * @return
     */
    CreditResolution getByProjectInfoId(Long cProjectInformationId);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    CreditResolution getById(Long id);

    /**
     * 根据条件查询所有数据
     * @param search
     * @return
     */
    List<CreditResolution> allList(SearchBusinessProcessingTask search);

    /**
     * 保存数据
     * @param creditResolution
     */
    void add(CreditResolution creditResolution);
}
