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