package com.ruoyi.web.sales.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.web.base.domain.base.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
@TableName("sales_order_goods")
@ApiModel(value = "SalesOrderGoods对象", description = "销售订单货品清单")
public class SalesOrderGoods extends Base {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单据编号")
    private String orderNum;

    @ApiModelProperty(value = "货品编号")
    @Excel(name = "货品编号")
    private String goodsNum;

    @ApiModelProperty(value = "货品名称")
    @Excel(name = "货品名称")
    private String goodsName;

    @ApiModelProperty(value = "规格")
    @Excel(name = "规格")
    private String goodsSpec;

    @ApiModelProperty(value = "基本计量数量")
    @Excel(name = "基本计量数量")
    private String baseNum;

    @ApiModelProperty(value = "辅助计量数量")
    @Excel(name = "辅助计量数量")
    private String assNum;

    @ApiModelProperty(value = "基本计量单位")
    @Excel(name = "基本计量单位")
    private String baseUnit;

    @ApiModelProperty(value = "辅助计量单位")
    @Excel(name = "辅助计量单位")
    private String assUnit;

    @ApiModelProperty(value = "单价")
    @Excel(name = "单价")
    private String unitPrice;

    @ApiModelProperty(value = "换算值")
    @Excel(name = "换算值")
    private String conversionValue;

//    @ApiModelProperty(value = "客户")
//    private String customerName;
//    private String customerNum;
//    @ApiModelProperty(value = "金额")
//    private String totalAmount;

    @ApiModelProperty(value = "小计")
    @Excel(name = "小计")
    @TableField(value = "sub_total", insertStrategy = FieldStrategy.NOT_NULL, updateStrategy = FieldStrategy.NOT_NULL)
    private String subTotal;
}
