Bläddra i källkod

各领域项目投资情况,各区域项目投资情况

master
niohe·erbao 1 år sedan
förälder
incheckning
f6ea95db95
1 ändrade filer med 0 tillägg och 37 borttagningar
  1. +0
    -37
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java

+ 0
- 37
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java Visa fil

@@ -6,7 +6,6 @@ import com.ningdatech.pmapi.dashboard.constant.ChartTypeEnum;
import com.ningdatech.pmapi.dashboard.helper.DashboardChartAssembler;
import com.ningdatech.pmapi.dashboard.helper.DashboardHelper;
import com.ningdatech.pmapi.dashboard.model.basic.AnalysisChart;
import com.ningdatech.pmapi.dashboard.model.basic.QueryTimeYearBO;
import com.ningdatech.pmapi.dashboard.model.po.QueryYearPO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardInvestmentSummaryVO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardProjectCntSummaryVO;
@@ -20,11 +19,6 @@ import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAdjusters;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -45,37 +39,6 @@ public class DashboardProjectManage {
private final INdProjectDelayApplyService iProjectDelayApplyService;
private final DashboardHelper dashboardHelper;


/**
* 查询年份BO 装配
*
* @param year
* @return
*/
private QueryTimeYearBO getQueryTimeYearBO(Integer year) {
QueryTimeYearBO queryTimeYearBO = new QueryTimeYearBO();
if (year == null) {
//获取今年第一天
LocalDate lastYearStrDay = LocalDate.of(LocalDate.now().minusYears(1).getYear(), 1, 1);
LocalDate firstDayOfYear = lastYearStrDay.with(TemporalAdjusters.firstDayOfYear());
LocalDate lastDayOfYear = lastYearStrDay.with(TemporalAdjusters.lastDayOfYear());
//获取今年第一天
LocalDateTime firstDateOfYear = LocalDateTime.of(firstDayOfYear, LocalTime.MIN);
//获取今年最后一天
LocalDateTime lastDateOfYear = LocalDateTime.of(lastDayOfYear, LocalTime.MAX);

queryTimeYearBO.setStartYearTime(firstDateOfYear);
queryTimeYearBO.setEndYearTime(lastDateOfYear);
} else {
String startTimeStr = String.format(timeFormat, year);
String endTimeStr = String.format(timeFormat, year + 1);
queryTimeYearBO.setStartYearTime(LocalDateTime.parse(startTimeStr, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
queryTimeYearBO.setEndYearTime(LocalDateTime.parse(endTimeStr, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
}
return queryTimeYearBO;
}


public DashboardProjectSummaryVO getProjectSummary(QueryYearPO queryYearPO) {
// 预算年度
Integer year = queryYearPO.getYear();


Laddar…
Avbryt
Spara