zss
5 天以前 0611c6769abdb9136ed7371a42efc37cecef9e2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.ruoyi.account.bean.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
 
@Data
@Schema(name = "AccountReportVo", description = "财务报表--返回参数")
public class AccountReportVo {
 
    @Schema(description = "总营收")
    private BigDecimal totalIncome;
 
    @Schema(description = "总支出")
    private BigDecimal totalExpense;
 
    @Schema(description = "应收账款")
    private BigDecimal accountsReceivable;
 
    @Schema(description = "应付账款")
    private BigDecimal accountsPayable;
 
    @Schema(description = "净收入")
    private BigDecimal netRevenue;
 
    // --- 折线图:月度趋势数据 ---
    @Schema(description = "月度趋势数据列表")
    private List<MonthlyTrendVO> monthlyTrendList;
 
    // --- 柱状图:应收应付月度数据 ---
    @Schema(description = "应收应付月度数据列表")
    private List<ReceivablePayableVO> receivablePayableList;
 
    @Data
    @Schema(description = "月度趋势VO(折线图用)")
    public static class MonthlyTrendVO {
        @Schema(description = "月份,格式:yyyy-MM")
        private String month;
 
        @Schema(description = "当月营收")
        private BigDecimal income;
 
        @Schema(description = "当月支出")
        private BigDecimal expense;
 
        @Schema(description = "当月净利润")
        private BigDecimal profit;
    }
 
    @Data
    @Schema(description = "应收应付月度VO(柱状图用)")
    public static class ReceivablePayableVO {
        @Schema(description = "月份,格式:yyyy-MM")
        private String month;
 
        @Schema(description = "应收账款金额")
        private BigDecimal receivable;
 
        @Schema(description = "应付账款金额")
        private BigDecimal payable;
    }
 
}