package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.maintain.common.core.domain.BaseEntity;

/**
 * 故障项目业务对象 erp_malfunction_project
 *
 * @author liushuai
 * @date 2025-03-28
 */

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

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

    /**
     * 故障类型ID
     */
    @NotNull(message = "故障类型ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     * 故障类型名称
     */
    private String typeName;

    /**
     * 故障编号
     */
    private String malfunctionCode;

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

    /**
     * 状态
     */
    private Integer state;

    /**
     * 是否删除（0否1是）
     */
    private Integer isDelete;


}
