package cn.com.countrygarden.bi.main.dao.districtReport;

import cn.com.countrygarden.bi.main.core.Mapper;
import cn.com.countrygarden.bi.main.dto.districtReport.RdPendingBuildingProjectDTO;
import cn.com.countrygarden.bi.main.dto.districtReport.RdPendingBuildingProjectVO;
import cn.com.countrygarden.bi.main.model.districtReport.RdPendingBuildingProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 待收楼项目-项目交付计划-数据层
 *
 * @author 吕伟峰
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2019-08-14
 */
public interface RdPendingBuildingProjectMapper extends Mapper<RdPendingBuildingProject>{

    List<RdPendingBuildingProjectDTO> queryPageList(@Param("rdPendingBuildingProjectDTO") RdPendingBuildingProjectDTO rdPendingBuildingProjectDTO,
                                                    @Param("organCodeString") List<String> organCodeString,@Param("commIdString") List<String> commIdString,@Param("principaString") List<String> principaString);

    RdPendingBuildingProjectDTO queryById(@Param("id") Integer id);

    RdPendingBuildingProjectDTO buildingProjectAddone(@Param("regionCode")String regionCode,
                                                      @Param("districtCode")String districtCode,@Param("projectName") String projectName,@Param("createdBy") String createdBy);

    int districtProjectName(@Param("projectName")String projectName);

    int edit(RdPendingBuildingProject rdPendingBuildingProject);

    int deleteUpdate(@Param("id") Integer id,@Param("updateBy") String updateBy,@Param("updateName") String updateName);

    int delpingliangtag(@Param("rids") List<String> rids,@Param("updateBy") String updateBy,@Param("updateName") String updateName);

    List<RdPendingBuildingProjectVO> evaluationrdUncollectedBuildingProjects(@Param("rdPendingBuildingProjectDTO")RdPendingBuildingProjectDTO rdPendingBuildingProjectDTO,
                                                                             @Param("organCodeString") List<String> organCodeString,@Param("commIdString") List<String> commIdString,@Param("principaString") List<String> principaString);

    List<RdPendingBuildingProjectDTO> BuildingProjectOne(RdPendingBuildingProjectDTO rdPendingBuildingProjectDTO);
}