use of com.tony.billing.response.budget.BudgetOverviewResponse in project BillingDubbo by TonyJiangWJ.
the class BudgetController method getBudgetOverviewInfo.
@RequestMapping("/budget/report/list")
public BudgetOverviewResponse getBudgetOverviewInfo() {
List<BudgetReportModel> reportModels = budgetService.getNearlySixMonth();
BudgetOverviewResponse response;
if (CollectionUtils.isNotEmpty(reportModels)) {
response = ResponseUtil.success(new BudgetOverviewResponse());
response.setReportModelList(reportModels);
} else {
response = ResponseUtil.dataNotExisting(new BudgetOverviewResponse());
}
return response;
}
Aggregations