package com.sunxung.factoring.mapper.project;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunxung.factoring.entity.project.ProjectInformation;
import com.sunxung.factoring.entity.project.vo.ProjectInformationVo;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 项目信息 Mapper 接口
 * </p>
 *
 * @author liutao
 * @since 2023-11-25
 */
@Mapper
public interface ProjectInformationMapper extends BaseMapper<ProjectInformation> {

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    ProjectInformation findById(Long id);

    /**
     * 根据业务编号查询
     *
     * @param businessNumber
     * @return
     */
    ProjectInformationVo getByBusinessNo(String businessNumber);

    /**
     * 根据条件查询
     *
     * @param search
     * @return
     */
    List<ProjectInformation> findBySearch(SearchBusinessProcessingTask search);
}
