package com.securitycontrol.entity.system.base.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author：cwchen
 * @date：2024-03-13-15:45
 * @version：1.0
 * @description：工序计划表-vo
 */
@Data
public class GxPlanVo {

    @ApiModelProperty(value = "计划ID")
    private String planId;

    @ApiModelProperty(value = "标段工程编码")
    @NotBlank(message = "标段工程编码不能为空", groups = {Query.class})
    @Length(max = 50, message = "标段工程编码字符长度不能超过50", groups = {Query.class})
    private String bidCode;

    @ApiModelProperty(value = "工序id/杆塔ID")
    @NotBlank(message = "工序ID或杆塔ID不能为空", groups = {Query.class})
    @Length(max = 100, message = "工序ID或杆塔ID字符长度不能超过50", groups = {Query.class})
    private String gxId;

    @ApiModelProperty(value = "工序名称/杆塔名称")
    private String gxName;

    @ApiModelProperty(value = "工序作业权重")
    @NotBlank(message = "工序作业权重不能为空", groups = {Query.class})
    @Length(max = 100, message = "工序作业权重字符长度不能超过30", groups = {Query.class})
    @Pattern(regexp = "(?:0|[1-9][0-9]?|100)(\\.[0-9]{0,2})?",message = "工序作业权重为0-100",groups = {Query.class})
    private String gxWeight;

    @ApiModelProperty(value = "计划开始时间")
    @NotBlank(message = "计划开始时间不能为空", groups = {Query.class})
    private String planStartTime;

    @ApiModelProperty(value = "计划结束时间")
    @NotBlank(message = "计划结束时间不能为空", groups = {Query.class})
    private String planEndTime;

    @ApiModelProperty(value = "实际开始时间")
    private String startTime;

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

    @ApiModelProperty(value = "延期原因")
    private String 	delaReason;

    @ApiModelProperty(value = "删除状态")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer delFlag;

    @ApiModelProperty(value = "1. 新增 2.修改")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer type;

    @ApiModelProperty(value = "工序计划进度")
    private String planProgress;

    /**
     * 查询条件限制
     */
    public interface Query {
    }
}
