package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionRepair;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 运维-巡检-抢修业务对象 ops_inspection_repair
 *
 * @author LionLi
 * @date 2025-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionRepair.class, reverseConvertGenerate = false)
public class OpsInspectionRepairBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 1常规2紧急3致命
     */
    @NotBlank(message = "1常规2紧急3致命不能为空", groups = { AddGroup.class, EditGroup.class })
    private String level;

    /**
     * 1待处理2处理中3已完成
     */
    @NotBlank(message = "1待处理2处理中3已完成不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 抢修类型1电力2设备3供水4网络5设施
     */
    @NotBlank(message = "抢修类型1电力2设备3供水4网络5设施不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

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

    /**
     * 指派维修人
     */
//    @NotNull(message = "指派维修人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sendPerson;

    /**
     * 详细信息
     */
    @NotBlank(message = "详细信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportInfo;

    /**
     * 故障位置
     */
    @NotBlank(message = "故障位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String position;

    /**
     * 文件IDS
     */
    private String fileId;

    /**
     * 文件路径
     */
    private String fileUrl;

    /**
     * 报修人姓名
     */
//    @NotBlank(message = "报修人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportName;

    /**
     * 报修人联系电话
     */
//    @NotBlank(message = "报修人联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportPhone;

    /**
     * 维修结果
     */
//    @NotBlank(message = "维修结果不能为空", groups = { AddGroup.class, EditGroup.class })
//    private String reportFinal;

    /**
     * 预计完成时间
     */
    @NotBlank(message = "预计完成时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String expectedTime;

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

    /**
     * 支援,1需要2不需要
     */
    @NotBlank(message = "支援,1需要2不需要不能为空", groups = { AddGroup.class, EditGroup.class })
    private String support;


}
