package cn.iocoder.yudao.module.erp.controller.admin.product.vo.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ERP 产品 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false)
public class ErpProductImportExcelVO {

    @ExcelProperty("产品名称")
    private String name;

    @ExcelProperty("产品条码")
    private String barCode;

//    @ExcelIgnore
//    private String categoryName;

    @ExcelIgnore
    private String subCategoryName;

    @ExcelProperty("单位")
    private String unitName;

    @ExcelProperty("产品状态")
    private Integer status;

    @ExcelProperty("产品规格")
    private String standard;

    @ExcelProperty("产品备注")
    private String remark;

    @ExcelProperty("保质期天数")
    private Integer expiryDay;

    @ExcelProperty("预警库存")
    private BigDecimal safetyNumber;

    // 以下是辅助字段，不在Excel中显示
    @ExcelIgnore
    private Long categoryId; // 分类ID

    @ExcelIgnore
    private Long subCategoryId; // 子分类ID

    @ExcelIgnore
    private Long unitId; // 单位ID

    @ExcelIgnore
    private LocalDateTime createTime;

}