Kaynağa Gözat

项目列表累计投资

qianxb 1 yıl önce
ebeveyn
işleme
9d9cb6b1e7

+ 1 - 1
src/main/java/org/springblade/modules/project/mapper/ProjectInfoMapper.xml

@@ -33,7 +33,7 @@
                if (build_scale_unit = 1,concat(build_scale,'(公里)'),build_scale) as buildScaleName,
                if (is_focus_project = 1,'是','否') as isFocusProjectName,
                if (is_pilot_plan = 1,'是','否') as isPilotPlanName,
-               (select sum(year_finish_invest) from d_project_invest_plan where is_deleted = 0 and project_id = dpi.id) as finishedInvestMoney,
+               (select year_finish_invest from d_project_invest_plan where is_deleted = 0 and project_id = dpi.id and plan_year = YEAR(NOW())) as finishedInvestMoney,
                (select sum(plan_ratio) from d_project_plan_progress where is_deleted = 0 and project_id = dpi.id) as Progress,
                (select sum(fill_field) from d_project_plan_progress where is_deleted = 0 and project_id = dpi.id) as finishedFill,
                (select count(1) from d_project_invest_plan where is_deleted = 0 and is_plan = 1 and project_id = dpi.id) as hasPlanYearTotal,