package org.eco.als.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.eco.als.domain.MaintenanceDecision;
import org.eco.common.orm.core.domain.BaseEntity;

/**
 * 辅助维修决策业务对象 als_maintenance_decision_t
 *
 * @author wgk
 * @date 2024-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MaintenanceDecision.class, reverseConvertGenerate = false)
public class MaintenanceDecisionBo extends BaseEntity {
    /**
     * 编号
     */
    private Long id;

    /**
     * 架次号
     */
    @NotNull(message = "架次号不能为空")
    private String sortieNo;

    /**
     * 机号Id
     */
    @NotNull(message = "机号不能为空")
    private String aircraftId;

    /**
     * 故障代码
     */
    @NotBlank(message = "故障代码不能为空")
    private String code;

    /**
     * 系统
     */
    @NotBlank(message = "系统不能为空")
    private String systemName;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空")
    private String unitName;

    /**
     * 故障部件
     */
    @NotBlank(message = "故障部件不能为空")
    private String faultPart;

    /**
     * 维修建议
     */
    @NotBlank(message = "维修建议不能为空")
    private String proposal;

    /**
     * 状态（1正常）
     */
    private String status;


}
