|
|
@ -2,6 +2,7 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -37,10 +38,7 @@ import com.epmet.service.evaluationindex.extract.dataToIndex.*; |
|
|
|
import com.epmet.service.evaluationindex.extract.todata.FactOriginTopicMainDailyService; |
|
|
|
import com.epmet.service.evaluationindex.extract.toscreen.*; |
|
|
|
import com.epmet.service.evaluationindex.indexcal.*; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectGridDailyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectOrgDailyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectQuantityGridMonthlyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.ScreenProjectQuantityOrgMonthlyService; |
|
|
|
import com.epmet.service.evaluationindex.screen.*; |
|
|
|
import com.epmet.service.stats.DimAgencyService; |
|
|
|
import com.epmet.service.stats.DimCustomerPartymemberService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@ -49,6 +47,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.time.LocalDate; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.List; |
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
@ -103,6 +102,11 @@ public class DemoController { |
|
|
|
private GovernRankDataExtractService governRankDataExtractService; |
|
|
|
@Autowired |
|
|
|
private OrgRankExtractService orgRankExtractService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectSettleService screenProjectSettleService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryGridDailyService projectCategoryGridDailyService; |
|
|
|
|
|
|
|
@GetMapping("testAlarm") |
|
|
|
public void testAlarm() { |
|
|
|
//for (int i = 0; i < 20; i++) {
|
|
|
@ -815,8 +819,6 @@ public class DemoController { |
|
|
|
return new Result(); |
|
|
|
}*/ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ScreenProjectSettleService screenProjectSettleService; |
|
|
|
@PostMapping("project-test") |
|
|
|
public Result project(@RequestBody ScreenCentralZoneDataFormDTO param){ |
|
|
|
screenProjectSettleService.extractScreenData(param); |
|
|
@ -828,4 +830,11 @@ public class DemoController { |
|
|
|
System.out.println(monthId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("extractProjectCategoryData") |
|
|
|
public Result extractProjectCategoryData(@RequestParam("customerId") String customerId){ |
|
|
|
String dateId = LocalDate.now().minusDays(NumConstant.ONE).toString().replace("-", ""); |
|
|
|
projectCategoryGridDailyService.extractProjectCategoryData(customerId,dateId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |
|
|
|