package com.ruoyi.zdsz.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基建工程业务对象 z_engineering_infrastructure
 *
 * @author ruoyi
 * @date 2024-01-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ZEngineeringInfrastructureBo extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @NotBlank(message = "id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 工程名称
     */
    @NotBlank(message = "工程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enginName;

    /**
     * 工程地址
     */
    @NotBlank(message = "工程地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enginAddre;

    /**
     * 建设单位
     */
    @NotBlank(message = "建设单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String constructUnit;

    /**
     * 开工时间
     */
//    @NotNull(message = "开工时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 计划工期
     */
//    @NotBlank(message = "计划工期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plannedDuration;

    /**
     * 竣工时间
     */
//    @NotNull(message = "竣工时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date completedTime;

    /**
     * 工程内容
     */
//    @NotBlank(message = "工程内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enginContent;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private ZEngineeringNodeBo zEngineeringNodeBo;

    public ZEngineeringNodeBo getzEngineeringNodeBo() {
        return zEngineeringNodeBo;
    }

    public void setzEngineeringNodeBo(ZEngineeringNodeBo zEngineeringNodeBo) {
        this.zEngineeringNodeBo = zEngineeringNodeBo;
    }

    private List<ZEngineeringNodeBo> zEngineeringNodeBoList;

    public List<ZEngineeringNodeBo> getzEngineeringNodeBoList() {
        return zEngineeringNodeBoList;
    }

    public void setzEngineeringNodeBoList(List<ZEngineeringNodeBo> zEngineeringNodeBoList) {
        this.zEngineeringNodeBoList = zEngineeringNodeBoList;
    }

    private List<ZFileBo> files;

    public List<ZFileBo> getFiles() {
        return files;
    }

    public void setFiles(List<ZFileBo> files) {
        this.files = files;
    }
}
