| | |
| | | TPI.id = #{id} AND TPI.deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="resultMap"> |
| | | SELECT |
| | | TPI.*,TPP.process_ins_id as processId, |
| | |
| | | |
| | | </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> |