package com.dsk.cscec.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsk.cscec.domain.DProject;
import com.dsk.cscec.domain.vo.CooperateProjectDetailSearchVo;
import com.dsk.cscec.domain.vo.ProjectSearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目维表(DProject)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-10 15:34:46
 */
public interface DProjectMapper extends BaseMapper<DProject> {
    /**
     * 获取所有项目列表数据
     */
    Page<ProjectSearchVo> selectPageProjectList(@Param("page") Page<ProjectSearchVo> page, @Param(Constants.WRAPPER) Wrapper<DProject> queryWrapper);

    /**
     * 获取项目承接类型下拉列表
     */
    List<String> queryIsInvestProject();

    /**
     * 获取合作项目明细
     */
    Page<CooperateProjectDetailSearchVo> selectPageCooperateProjectDetailList(@Param("page") Page<CooperateProjectDetailSearchVo> page, @Param(Constants.WRAPPER) Wrapper<DProject> Wrapper);

    /**
     * 获取业主单位列表
     */
    List<String> getOwnerNameList(@Param("contractOrgId") String contractOrgId);
}