gaoluyang
13 小时以前 ef3cbc1c6882786e8218b08be3e52ea44587f03b
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
package cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
 
/**
 * 管理后台 - 考勤节假日按区间分组后的 Response VO
 *
 * 库里按自然日存储,列表按「连续日期 + 名称/类型/是否法定/备注一致」合并成一行展示,
 * 例如 2026-10-01 ~ 2026-10-03 的国庆节在列表中只占一行。
 */
@Schema(description = "管理后台 - 考勤节假日分组 Response VO")
@Data
public class HrmAttendanceHolidayGroupRespVO {
 
    @Schema(description = "起始日期对应的记录ID(行 key)", example = "1")
    private Long id;
 
    @Schema(description = "区间内全部记录ID,用于区间编辑/删除")
    private List<Long> ids;
 
    @Schema(description = "节假日名称", example = "国庆节")
    private String name;
 
    @Schema(description = "开始日期", example = "2026-10-01")
    private LocalDate date;
 
    @Schema(description = "结束日期", example = "2026-10-03")
    private LocalDate endDate;
 
    @Schema(description = "区间天数", example = "3")
    private Integer dayCount;
 
    @Schema(description = "类型:1-休息日,2-工作日", example = "1")
    private Integer type;
 
    @Schema(description = "是否法定节假日:0-否,1-是", example = "1")
    private Integer isLegal;
 
    @Schema(description = "备注", example = "国庆节法定假期")
    private String remark;
 
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
 
}