<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dsk.cscec.mapper.DProjectMapper">

    <select id="selectPageProjectList" resultType="com.dsk.cscec.domain.vo.ProjectSearchVo">
        select p.project_key,
               p.project_id,
               p.project_name,
               p.project_code,
               p.province_name,
               p.isinvestproject,
               p.project_type1,
               p.project_type2,
               p.contract_orig_value,
               p.owner_name,
               p.contract_org_name,
               p.contract_sign_date
        from d_project p
            ${ew.getCustomSqlSegment}
    </select>

    <select id="queryIsInvestProject" resultType="java.lang.String">
        SELECT DISTINCT isinvestproject
        FROM d_project
        WHERE (isinvestproject <![CDATA[ <> ]]> '')
    </select>

    <select id="selectPageCooperateProjectDetailList"
            resultType="com.dsk.cscec.domain.vo.CooperateProjectDetailSearchVo">
        select p.project_key,
               p.project_id,
               p.project_name,
               p.project_code,
               p.province_name,
               p.city_name,
               p.isinvestproject,
               p.project_type1,
               p.project_type,
               p.contract_orig_value,
               p.owner_name,
               p.contract_org_name,
               p.contract_sign_date
        from d_project p
            ${ew.getCustomSqlSegment}
    </select>
</mapper>