package com.cpop.oam.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author DB
 * @createTime 2023/11/28 15:08
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "接收/处理/暂停中页面返回对象", description = "接收/处理/暂停中对象")
public class TaskWorkOrderReceiveDealPauseVo {

    /**
     * 待接收列表
     */
    @ApiModelProperty(value = "待接收列表")
    private List<Receive> receiveList;

    /**
     * 处理中列表
     */
    @ApiModelProperty(value = "处理中列表")
    private List<Deal> dealList;

    /**
     * 暂停中列表
     */
    @ApiModelProperty(value = "暂停中列表")
    private List<Pause> pauseList;

    /**
     * 接收
     */
    @Data
    @ApiModel("待接收")
    public static class Receive {

        /**
         * 工单id
         */
        @ApiModelProperty(value = "工单id")
        private String id;

        /**
         * 机构/品牌
         */
        @ApiModelProperty(value = "机构/品牌")
        private String brandName;

        /**
         * 校区/店铺
         */
        @ApiModelProperty(value = "校区/店铺")
        private String storeName;

        /**
         * 问题描述
         */
        @ApiModelProperty(value = "问题描述")
        private String taskContent;

        /**
         * 手机号
         */
        @ApiModelProperty(value = "手机号")
        private String phoneNumber;

        /**
         * 提交人
         */
        @ApiModelProperty(value = "提交人")
        private String recordStaffName;

        /**
         * 提交时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "提交时间")
        private LocalDateTime createTime;

    }

    /**
     * 接收
     */
    @Data
    @ApiModel("处理中")
    public static class Deal {

        /**
         * 工单id
         */
        @ApiModelProperty(value = "工单id")
        private String id;

        /**
         * 机构/品牌
         */
        @ApiModelProperty(value = "机构/品牌")
        private String brandName;

        /**
         * 校区/店铺
         */
        @ApiModelProperty(value = "校区/店铺")
        private String storeName;

        /**
         * 问题描述
         */
        @ApiModelProperty(value = "问题描述")
        private String taskContent;

        /**
         * 提交人
         */
        @ApiModelProperty(value = "提交人")
        private String recordStaffName;

        /**
         * 提交时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "提交时间")
        private LocalDateTime createTime;

        /**
         * 接收人
         */
        @ApiModelProperty(value = "接收人")
        private String responsibleStaffName;

        /**
         * 任务接收时间
         */
        @ApiModelProperty(value = "任务接收时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private LocalDateTime taskReceiptTime;

        /**
         * 任务接收用时/min
         */
        @ApiModelProperty(value = "任务接收用时/min")
        private Integer receivingTime;

        /**
         * 任务状态(-1:失败;0:待审核;1:待接受;2:进行中;3:待测试;5:暂停;7:接收超时;8:待部署;9:待归档;10:审核不通过)
         */
        @ApiModelProperty(value = "任务状态(-1:失败;0:待审核;1:待接受;2:进行中;3:待测试;5:暂停;7:接收超时;8:待部署;9:待归档;10:审核不通过)")
        private Integer taskStatus;

    }

    /**
     * 暂停中
     */
    @Data
    @ApiModel("暂停中")
    public static class Pause {

        /**
         * 工单id
         */
        @ApiModelProperty(value = "工单id")
        private String id;

        /**
         * 机构/品牌
         */
        @ApiModelProperty(value = "机构/品牌")
        private String brandName;

        /**
         * 校区/店铺
         */
        @ApiModelProperty(value = "校区/店铺")
        private String storeName;

        /**
         * 问题描述
         */
        @ApiModelProperty(value = "问题描述")
        private String taskContent;

        /**
         * 提交人
         */
        @ApiModelProperty(value = "提交人")
        private String recordStaffName;

        /**
         * 提交时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "提交时间")
        private LocalDateTime createTime;

        /**
         * 接收人
         */
        @ApiModelProperty(value = "接收人")
        private String responsibleStaffName;

        /**
         * 暂停员工
         */
        @ApiModelProperty(value = "暂停员工")
        private String pauseStaffName;

        /**
         * 暂停记录时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "暂停记录时间")
        private LocalDateTime pauseRecordTime;

        /**
         * 暂停到期时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @ApiModelProperty(value = "暂停到期时间")
        private LocalDateTime pauseExpireTime;

    }
}
