liyong
5 天以前 536774eea8902efc088c5b904ff75bbe0af33418
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
package cn.iocoder.yudao.module.mes.controller.admin.cal.calendar.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - MES 排班日历 Response VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesCalCalendarRespVO {
 
    @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-01-15 00:00:00")
    private LocalDateTime day;
 
    @Schema(description = "轮班方式", example = "2")
    private Integer shiftType; // 对应 MesCalShiftTypeEnum 枚举值
 
    @Schema(description = "班组排班列表")
    private List<TeamShiftItem> teamShifts;
 
    @Schema(description = "班组排班项")
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class TeamShiftItem {
 
        @Schema(description = "班组编号", example = "201")
        private Long teamId;
 
        @Schema(description = "班组名称", example = "注塑A组")
        private String teamName;
 
        @Schema(description = "班次编号", example = "1")
        private Long shiftId;
 
        @Schema(description = "班次名称", example = "白班")
        private String shiftName;
 
        @Schema(description = "排序", example = "1")
        private Integer sort;
 
    }
 
}