update 企业客户统计(年度待确收金额前二十) 增加年份筛选
This commit is contained in:
+3
-3
@@ -93,10 +93,10 @@ public class IndexController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "前十统计")
|
@ApiOperation(value = "企业客户统计(年度待确收金额前二十)")
|
||||||
@GetMapping(value = "/top10Statistics")
|
@GetMapping(value = "/top10Statistics")
|
||||||
public Result<?> top10Statistics() {
|
public Result<?> top10Statistics(@RequestParam(name="year",required = false)String year) {
|
||||||
List<HistogramVO> histogramVOS = indexService.top10Statistics();
|
List<HistogramVO> histogramVOS = indexService.top10Statistics(year);
|
||||||
return Result.OK(histogramVOS);
|
return Result.OK(histogramVOS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -244,8 +244,10 @@ public class IndexService {
|
|||||||
return histogramVOlist;
|
return histogramVOlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<HistogramVO> top10Statistics() {
|
public List<HistogramVO> top10Statistics(String year) {
|
||||||
String year = String.valueOf(DateUtil.year(new DateTime()));
|
if (StringUtils.isBlank(year)){
|
||||||
|
year = String.valueOf(DateUtil.year(new DateTime()));
|
||||||
|
}
|
||||||
Page<CompanyComeMoneyList> page = new Page<>(1, 20);
|
Page<CompanyComeMoneyList> page = new Page<>(1, 20);
|
||||||
CompanyComeMoneySearch companyComeMoneySearch = new CompanyComeMoneySearch();
|
CompanyComeMoneySearch companyComeMoneySearch = new CompanyComeMoneySearch();
|
||||||
companyComeMoneySearch.setYear(year);
|
companyComeMoneySearch.setYear(year);
|
||||||
|
|||||||
Reference in New Issue
Block a user