|
|
@ -1075,4 +1075,28 @@ public class DemoController { |
|
|
|
screenProjectDataService.extractCategory(formDTO.getCustomerId()); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ScreenProjectCategoryGridAndOrgDailyService screenProjectCategoryGridAndOrgDailyService; |
|
|
|
|
|
|
|
@PostMapping("gridandorgdailynew") |
|
|
|
public Result<String> gridAndDaily(@RequestParam("customerId")String customerId,@RequestParam("dateId")String dateId, |
|
|
|
@RequestParam(name = "startDate",required = false)String startDate, |
|
|
|
@RequestParam(name = "endDate",required = false)String endDate |
|
|
|
){ |
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
if (StringUtils.isNotBlank(startDate) && StringUtils.isNotBlank(endDate)){ |
|
|
|
List<String> daysBetween = DateUtils.getDaysBetween(startDate, endDate); |
|
|
|
daysBetween.forEach(d -> { |
|
|
|
screenProjectCategoryGridAndOrgDailyService.extractCategoryProjectGridData(customerId,d); |
|
|
|
screenProjectCategoryGridAndOrgDailyService.extractCategoryProjectOrgData(customerId,d); |
|
|
|
}); |
|
|
|
}else { |
|
|
|
screenProjectCategoryGridAndOrgDailyService.extractCategoryProjectGridData(customerId,dateId); |
|
|
|
screenProjectCategoryGridAndOrgDailyService.extractCategoryProjectOrgData(customerId,dateId); |
|
|
|
} |
|
|
|
long end = System.currentTimeMillis(); |
|
|
|
long l = (end - start) / 1000; |
|
|
|
return new Result<String>().ok("gridAndOrgDaily耗时" + l+ "s"); |
|
|
|
} |
|
|
|
} |
|
|
|