gaoluyang
昨天 90b3ad820eea45d021835197eac5bc3ad55b12ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package cn.iocoder.yudao.module.finance.controller.admin.statistics.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.YearMonth;
 
@Schema(description = "管理后台 - 财务报表 / 会计核算看板查询 Request VO")
@Data
public class FinStatisticsReqVO {
 
    // 同 FinLedgerReqVO:月份参数必须是 YearMonth,LocalDate 无法接收 "2026-01"。
    @Schema(description = "开始月份,格式 yyyy-MM,为空时取本年 1 月", example = "2026-01")
    @DateTimeFormat(pattern = "yyyy-MM")
    private YearMonth startMonth;
 
    @Schema(description = "结束月份,格式 yyyy-MM,为空时取当前月", example = "2026-12")
    @DateTimeFormat(pattern = "yyyy-MM")
    private YearMonth endMonth;
 
}