package com.ho.flow.vo.req.workorder;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description 查询工单参数
 * Author yule
 * Date 2022/10/14 12:06
 */
@Getter
@Setter
@ToString
public class WorkOrderPageReq implements Serializable {

    @ApiModelProperty(value = "电站id")
    //@NotNull(message = "请选择电站")
    private Integer stationId;

    @ApiModelProperty(value = "集团id",hidden = true)
    private Integer groupId;

    @ApiModelProperty(value = "工单号")
    String orderId;

    @ApiModelProperty(value = "工单类型")
    Integer orderType;

    @ApiModelProperty(value = "流程id,和工作流关联")
    String ProcessId;

    @ApiModelProperty(value = "工单号集合", hidden = true)
    List<String> orderIds;

    @ApiModelProperty(value = "故障等级")
    Integer eventLevel;

    @ApiModelProperty(value = "故障描述")
    @Length(max = 500,message = "工单描述不能超过500个字符")
    String desc;

    @ApiModelProperty(value = "工单状态")
    Integer workOrderStatus;

    @ApiModelProperty(value = "工单类型")
    Integer workOrderType;

    @ApiModelProperty(value = "开始时间")
    String beginTime;

    @ApiModelProperty(value = "结束时间")
    String endTime;

    @ApiModelProperty(value = "电站id列表",hidden = true)
    private List<Integer> stationIds = new ArrayList<>();

    @ApiModelProperty(value = "第几页")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "分页数量")
    private Integer pageSize = 10;

    //去掉执行人名称
    //@ApiModelProperty(value = "执行人名称")
    //private String toName;


    String toId;
    //用于查询多个id
    List<String> toIds;

    String roleLeader;

    String roleWorker;

    String roleOther;

    String fromId;
}
