package org.jeecg.modules.maintenanceWork.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 维修作业管理-作业计划批次管理表
 * </p>
 *
 * @author hkl
 * @since 2023-08-09
 */
@Data
@ApiModel(value = "PageSaveOrUpdateDTO对象", description = "维修作业管理-页面来源保存或更新dto")
public class AnalysisBatchSaveDTO {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("作业计划批次号")
    private String workBatchCode;

    @ApiModelProperty("所属线路id")
    private String lightRailId;

    @ApiModelProperty("所属线路名称")
    private String lightRailName;

    @ApiModelProperty("所属线别id")
    private String lineAliasId;

    @ApiModelProperty("所属线别名称")
    private String lineAliasName;

    @ApiModelProperty("作业起始里程")
    private BigDecimal workStartingMileage;

    @ApiModelProperty("作业终点里程")
    private BigDecimal workEndMileage;

    @ApiModelProperty("作业终止时间")
    private Date workStartTime;

    @ApiModelProperty("作业终止时间")
    private Date workEndTime;

    @ApiModelProperty("作业班组")
    private String team;

    @ApiModelProperty("作业状态 0-未作业 1-已作业")
    private Integer workStatus;

    @ApiModelProperty("来源 1-一键全部派工 2-一键失格派工")
    private Integer saveType;

    @ApiModelProperty("分析批次id")
    private String analysisBatchId;

    @ApiModelProperty("查询条件")
    private Form form;

    @Data
    public static class Form {
        @ApiModelProperty("设备单元起始里程")
        private BigDecimal unitStartingMileage;

        @ApiModelProperty("设备单元结束里程")
        private BigDecimal unitEndMileage;

        @ApiModelProperty("是否超限")
        private Integer isTransfinite;

        @ApiModelProperty("单元编号")
        private String unitCode;

        @ApiModelProperty("设备编号")
        private String unitDeviceCode;

        @ApiModelProperty("派工状态 0-未派工 1-已派工")
        private Integer workStatus;

        @ApiModelProperty("得分平级")
        private List<String> gradeJudgeList;

        @ApiModelProperty("设备单元类型1-钢轨 2-曲线 3-竖曲线 4-道岔")
        private List<Integer> unitTypeList;
    }
}
