package com.yuchen.saas.park.api.vo.repair;

import com.yuchen.saas.park.api.entity.repair.SaasMatterRepair;
import com.yuchen.saas.park.api.entity.repair.SaasMatterRepairHandleRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class SaasMatterRepairVo extends SaasMatterRepair {
    /**
     * 报修类型名称
     */
    @ApiModelProperty(name = "repairTypeName", value = "报修类型名称")
    private String repairTypeName;
    /**
     * 回访人员名称
     */
    @ApiModelProperty(name = "backUserName", value = "回访人员名称")
    private String backUserName;
    /**
     * 项目名称
     */
    @ApiModelProperty(name = "projectName", value = "项目名称")
    private String projectName;
    /**
     * 应用名称
     */
    @ApiModelProperty(name = "appName", value = "应用名称")
    private String appName;
    /**
     * 派工详情
     */
    @ApiModelProperty(name = "dispatchDetail", value = "派工详情")
    private DispatchDetail dispatchDetail;

    /**
     * 处理记录
     */
    @ApiModelProperty(name = "handleRecordList", value = "处理记录")
    private List<SaasMatterRepairHandleRecordVo> handleRecordList;

    @Data
    public static class DispatchDetail {
        /**
         * 派工单号
         */
        @ApiModelProperty(name = "dispatchNo", value = "派工单号")
        private String dispatchNo;
        /**
         * 工单大类(1:报事报修 2:设备报修 3:告警运维)
         */
        @ApiModelProperty(name = "workOrderCategory", value = "工单大类(1:报事报修 2:设备报修 3:告警运维)")
        private Integer workOrderCategory;
        /**
         * 工单类型ID
         */
        @ApiModelProperty(name = "workOrderTypeId", value = "工单类型ID")
        private Long workOrderTypeId;
        /**
         * 工单类型名称
         */
        @ApiModelProperty(name = "workOrderTypeName", value = "工单类型名称")
        private String workOrderTypeName;
        /**
         * 工单时限ID
         */
        @ApiModelProperty(name = "timeLimitId", value = "工单时限ID")
        private Long timeLimitId;
        /**
         * 工单时限名称
         */
        @ApiModelProperty(name = "timeLimitName", value = "工单时限名称")
        private String timeLimitName;
        /**
         * 派工类型(1:有偿服务 2:无偿服务)
         */
        @ApiModelProperty(name = "dispatchType", value = "派工类型(1:有偿服务 2:无偿服务)")
        private Integer dispatchType;
        /**
         * 指派人
         */
        @ApiModelProperty(name = "dispatchUserIds", value = "指派人")
        private String dispatchUserIds;
        /**
         * 指派人
         */
        @ApiModelProperty(name = "dispatchUserNames", value = "指派人")
        private String dispatchUserNames;
        /**
         * 派工时间
         */
        @ApiModelProperty(name = "dispatchTime", value = "派工时间")
        private Date dispatchTime;
        /**
         * 派工备注
         */
        @ApiModelProperty(name = "dispatchRemark", value = "派工备注")
        private String dispatchRemark;
        /**
         * 工单状态(1:待开始 2:处理中 3:待确认 4:已关闭)
         */
        @ApiModelProperty(name = "workOrderStatus", value = "工单状态(1:待开始 2:处理中 3:待确认 4:已关闭)")
        private Integer workOrderStatus;
    }

}
