zxl
15 小时以前 fa90edeeb9396b8a8031f7fb14cc30c4386cc1db
business/src/main/resources/mapper/ProjectInfoMapper.xml
@@ -61,7 +61,6 @@
            TPI.id = #{id} AND TPI.deleted = 0
    </select>
    <select id="getPage" resultMap="resultMap">
        SELECT
            TPI.*,TPP.process_ins_id as processId,
@@ -251,4 +250,17 @@
    </select>
    <select id="getProjectInfoAndFunding" parameterType="com.ycl.common.core.domain.BaseEntity" resultMap="resultMap">
        SELECT TPI.*,TPIF.total_investment,TPIF.principal,TPIF.government_investment_total,
               TPIF.central_investment_total,TPIF.provincial_investment_total,TPIF.city_investment_total,TPIF.county_investment_total,
               TPIF.other_investment_total
        FROM t_project_info TPI
        LEFT JOIN t_project_investment_funding TPIF ON TPI.id = TPIF.project_id and TPIF.deleted = 0
        LEFT JOIN sys_dept d ON TPI.project_owner_unit = d.dept_id
        <where>
            TPI.deleted = 0 AND TPI.used_status = 2
            ${params.dataScope}
        </where>
    </select>
</mapper>