package com.inkasso.factoring.creditmanagement.dao;

import com.inkasso.factoring.creditmanagement.entity.ProjectInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inkasso.factoring.creditmanagement.entity.vo.UserBiddingProjectsVo;
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> {

    List<UserBiddingProjectsVo> getUserBiddingProjects(Long sysUserId);

    List<ProjectInformation> getLocalPurchCompletedProject(Long userId);

    /**
     * 查询指定用户下授信决议已通过采购合同已完成的所有项目
     *
     * @param userId
     * @return
     */
    List<ProjectInformation> getLocalCreditResolutionCompletedProject(Long userId);
}
