package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionNode;
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_node
 *
 * @author LionLi
 * @date 2025-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionNode.class, reverseConvertGenerate = false)
public class OpsInspectionNodeBo extends BaseEntity {

    /**
     * 节点ID
     */
    private Long id;

    /**
     * 所用模块1工单2巡检任务3试验任务
     */
    @NotBlank(message = "所用模块1工单2巡检任务3试验任务不能为空", groups = { AddGroup.class, EditGroup.class })
    private String module;

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

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

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

    /**
     * 预期目的
     */
//    @NotBlank(message = "预期目的不能为空", groups = { AddGroup.class, EditGroup.class })
    private String intendedPurpose;

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

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

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态1完成2未完成3失败
     */
    @NotBlank(message = "状态1完成2未完成不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
