Browse Source

网格内按分类统计项目数量 start2

dev_shibei_match
yinzuomei 5 years ago
parent
commit
c779d674bc
  1. 22
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java

22
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java

@ -35,6 +35,7 @@ import com.epmet.entity.stats.DimDateEntity;
import com.epmet.entity.stats.DimMonthEntity; import com.epmet.entity.stats.DimMonthEntity;
import com.epmet.service.StatsDemoService; import com.epmet.service.StatsDemoService;
import com.epmet.service.evaluationindex.extract.dataToIndex.*; import com.epmet.service.evaluationindex.extract.dataToIndex.*;
import com.epmet.service.evaluationindex.extract.todata.FactOriginProjectCategoryDailyService;
import com.epmet.service.evaluationindex.extract.todata.FactOriginTopicMainDailyService; import com.epmet.service.evaluationindex.extract.todata.FactOriginTopicMainDailyService;
import com.epmet.service.evaluationindex.extract.toscreen.*; import com.epmet.service.evaluationindex.extract.toscreen.*;
import com.epmet.service.evaluationindex.indexcal.*; import com.epmet.service.evaluationindex.indexcal.*;
@ -106,6 +107,8 @@ public class DemoController {
private ScreenProjectSettleService screenProjectSettleService; private ScreenProjectSettleService screenProjectSettleService;
@Autowired @Autowired
private ScreenProjectCategoryGridDailyService projectCategoryGridDailyService; private ScreenProjectCategoryGridDailyService projectCategoryGridDailyService;
@Autowired
private FactOriginProjectCategoryDailyService originProjectCategoryDailyService;
@GetMapping("testAlarm") @GetMapping("testAlarm")
public void testAlarm() { public void testAlarm() {
@ -831,10 +834,29 @@ public class DemoController {
} }
} }
/**
* @return com.epmet.commons.tools.utils.Result
* @param customerId
* @author yinzuomei
* @description 产品内部计算网格内按分类统计项目数量
* @Date 2021/3/23 10:52
**/
@PostMapping("extractProjectCategoryData") @PostMapping("extractProjectCategoryData")
public Result extractProjectCategoryData(@RequestParam("customerId") String customerId){ public Result extractProjectCategoryData(@RequestParam("customerId") String customerId){
String dateId = LocalDate.now().minusDays(NumConstant.ONE).toString().replace("-", ""); String dateId = LocalDate.now().minusDays(NumConstant.ONE).toString().replace("-", "");
projectCategoryGridDailyService.extractProjectCategoryData(customerId,dateId); projectCategoryGridDailyService.extractProjectCategoryData(customerId,dateId);
return new Result(); return new Result();
} }
/**
* @return com.epmet.commons.tools.utils.Result
* @author yinzuomei
* @description 将epmet_gov_project库中的项目分类信息project_category同步到统计库epmet_data_statistical
* @Date 2021/3/23 10:52
**/
@PostMapping("extractProjectCategory")
public Result extractProjectCategory(@RequestBody ExtractOriginFormDTO formDTO){
originProjectCategoryDailyService.extractProjectCategory(formDTO);
return new Result();
}
} }

Loading…
Cancel
Save