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 java.math.BigDecimal;
import java.util.List;

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

/**
 * 维修项目业务对象 erp_maintain_project
 *
 * @author liushuai
 * @date 2025-03-28
 */

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

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

    /**
     * notInIdList
     */
    private List<Long> notInIdList;

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

    /**
     * 维修类型名称
     */
    private String typeName;

    /**
     * 维修项目编码
     */
    private String projectCode;

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

    /**
     * 维修标准工时
     */
    @NotNull(message = "维修标准工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal standardManHour;

    /**
     * 维修标准单价
     */
    @NotNull(message = "维修标准单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal standardPrice;

    /**
     * 保质期（天）
     */
    @NotNull(message = "保质期（天）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer warrantyPeriod;

    /**
     * 技术规范
     */
    private String technicalSpecification;

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

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

    /**
     * 故障项目列表
     */
    @NotEmpty(message = "故障项目不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<ErpMalfunctionProjectBo> malfunctionProjectList;


}
