Search in sources :

Example 1 with BudgetOverviewResponse

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;
}
Also used : BudgetOverviewResponse(com.tony.billing.response.budget.BudgetOverviewResponse) BudgetReportModel(com.tony.billing.model.BudgetReportModel) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

BudgetReportModel (com.tony.billing.model.BudgetReportModel)1 BudgetOverviewResponse (com.tony.billing.response.budget.BudgetOverviewResponse)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1