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

import cn.com.countrygarden.bi.main.core.Mapper;
import cn.com.countrygarden.bi.main.dto.districtReport.RdNewProjectDTO;
import cn.com.countrygarden.bi.main.dto.districtReport.RdNewProjectVO;
import cn.com.countrygarden.bi.main.model.districtReport.RdNewProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 新项目信息-未开盘项目信息-数据层
 *
 * @author 吕伟峰
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2019-08-14
 */
public interface RdNewProjectMapper extends Mapper<RdNewProject>{

    List<RdNewProjectDTO> queryPageList(@Param("rdNewProjectDTO") RdNewProjectDTO rdNewProjectDTO,
                                        @Param("organCodeString") List<String> organCodeString,@Param("commIdString") List<String> commIdString,@Param("principaString") List<String> principaString);

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

    RdNewProjectDTO rdNewProjectAddOne(@Param("districtCode") String districtCode,@Param("projectCode") String projectCode,@Param("createdBy") String createdBy);

    int edit(RdNewProject rdNewProject);

    int RdNewProjectAddone(RdNewProjectDTO rdNewProjectDTO);

    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<RdNewProjectVO> evaluationRdNewProject(@Param("rdNewProjectDTO") RdNewProjectDTO rdNewProjectDTO,@Param("organCodeString") List<String> organCodeString,
                                                @Param("commIdString") List<String> commIdString,@Param("principaString") List<String> principaString);
}