package cn.iocoder.yudao.module.mes.controller.admin.workteam.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 生产班组 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WorkTeamRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19207")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "班组名称", example = "赵六")
    @ExcelProperty("班组名称")
    private String teamName;

    @Schema(description = "组长ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17857")
    private Long teamLeaderId;
    @Schema(description = "组长", requiredMode = Schema.RequiredMode.REQUIRED, example = "17857")
    @ExcelProperty("组长")
    private String teamLeaderName;

    @Schema(description = "工序类型", example = "2")
    @ExcelProperty(value = "工序类型", converter = DictConvert.class)
    @DictFormat("mes_org_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String teamType;

    @Schema(description = "班组类型", example = "1白班，2夜班")
    @ExcelProperty("班组类型")
    @DictFormat("mes_group_type")
    private String groupType;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否启用")
    private Boolean isEnable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "开工时间")
    private LocalDateTime startTime;
    @Schema(description = "结束时间")
    private LocalDateTime endTime;
}