From fa90edeeb9396b8a8031f7fb14cc30c4386cc1db Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 28 十一月 2025 11:38:12 +0800
Subject: [PATCH] 首页
---
business/src/main/resources/mapper/ProjectInfoMapper.xml | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/business/src/main/resources/mapper/ProjectInfoMapper.xml b/business/src/main/resources/mapper/ProjectInfoMapper.xml
index 2c6acca..6a87a4b 100644
--- a/business/src/main/resources/mapper/ProjectInfoMapper.xml
+++ b/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>
--
Gitblit v1.8.0