package com.maintain.business.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.maintain.common.annotation.ExcelDictFormat;
import com.maintain.common.convert.ExcelDictConvert;
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_maintain_cause
 *
 * @author liushuai
 * @date 2025-03-28
 */

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

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

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

    /**
     * 维修原因编号
     */
    @NotBlank(message = "维修原因编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String maintainCauseCode;

    /**
     * 类型（1修理 2维护 3修理与维护）
     */
    private String type;

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

    /**
     * 是否启用（0否 1是 默认1）
     */
    private Integer isEnable;


}
