package org.dromara.personnel.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.personnel.domain.OpsCaigouPlanChanpin;
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.math.BigDecimal;

/**
 * 运维-物资-采购申请计划-产品信息业务对象 ops_caigou_plan_chanpin
 *
 * @author LionLi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsCaigouPlanChanpin.class, reverseConvertGenerate = false)
public class OpsCaigouPlanChanpinBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 采购申请计划id
     */
//    @NotNull(message = "采购申请计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long caigouPlanId;

    /**
     * 设备类型
     */
    private String shebeiType;
    /**
     * 产品编号
     */
    private String chanpinBianhao;

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

    /**
     * 产品型号
     */
    @NotBlank(message = "产品型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chanpinType;

    /**
     * 产品单价
     */
    @NotNull(message = "产品单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal chanpinMonovalent;
    /**
     * 总价
     */
    private BigDecimal totalPrice;

    /**
     * 购买数量
     */
    @NotNull(message = "购买数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goumaiNumber;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String danwei;

    /**
     * 用途
     */
    @NotBlank(message = "用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String yontu;


}
