package org.dromara.zhishu.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.zhishu.annotation.EnableExcelComment;
import org.dromara.zhishu.converter.PriceDivideBy100Converter;
import org.dromara.zhishu.converter.QualityConverter;

@Data
@NoArgsConstructor
@AllArgsConstructor
@AutoMapper(target = SuccessDataKfz.class)  // 添加注解
@HeadRowHeight(30)  // 设置表头行高为30磅
public class SuccessDataKfz {

    /**
     * 商品编码
     */
    @ExcelProperty(value = "商品编号")
    @ColumnWidth(15)
    private String goodsCode;


    /**
     * 书名
     */
    @ExcelProperty(value = "商品名称")
    @ColumnWidth(15)
    private String title;

    /**
     * sku编码
     */
    @ExcelProperty(value = "货号")
    @ColumnWidth(15)
    private String artNo;


    /**
     * ISBN
     */
    @ExcelProperty(value = "ISBN")
    @ColumnWidth(15)
    private String isbn;

    /**
     * 作者
     */
    @ExcelProperty(value = "作者")
    @ColumnWidth(15)
    private String author;

    /**
     * 出版社
     */
    @ExcelProperty(value = "出版社")
    @ColumnWidth(15)
    private String publisher;

    /**
     * 定价
     */
    @ExcelProperty(value = "商品定价", converter = PriceDivideBy100Converter.class)
    @ColumnWidth(15)
    private String pricing;


    /**
     * 售价
     */
    @ExcelProperty(value = "商品售价", converter = PriceDivideBy100Converter.class)
    @ColumnWidth(15)
    private String totalPrice;


    /**
     * 商品分类
     */
    @ExcelProperty(value = "商品分类")
    @ColumnWidth(15)
    private String goodsClassification;

    /**
     * 本店分类
     */
    @ExcelProperty(value = "本店分类")
    @ColumnWidth(15)
    private String shopClassification;

    /**
     * 品相
     */
    @ExcelProperty(value = "品相", converter = QualityConverter.class)
    @ColumnWidth(15)
    private String quality;

    /**
     * 库存
     */
    @ExcelProperty(value = "库存")
    @ColumnWidth(15)
    private String stock;

    /**
     * 完成时间
     */
    @ExcelProperty(value = "上书时间")
    @ColumnWidth(15)
    private String finishTime;

    /**
     * 三方平台商品Id
     */
    @ExcelProperty(value = "商品ID")
    @ColumnWidth(15)
    private String trilateralId;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "店铺ID")
    @ColumnWidth(15)
    private String shopId;

    /**
     * 图片
     */
    @ExcelProperty(value = "商品图片")
    @ColumnWidth(15)
    private String img;
}
