package com.shinsoft.sto.model.main;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shinsoft.generator.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Getter
@Setter
@Accessors(chain = true)
@TableName("T_MAIN_PRICE")
@ApiModel(value = "价格管理", description = "价格管理信息表")
public class Price extends BaseModel {

    @ApiModelProperty("所属ID")
    private String belongId;

    @ApiModelProperty("客户ID")
    private String customerId;

    @ApiModelProperty("物料ID")
    private String materialId;

    @ApiModelProperty("仓储出库单价(元/吨)")
    private BigDecimal storagePrice;

    @ApiModelProperty("货权转移单价(元/吨)")
    private BigDecimal transferPrice;

    @ApiModelProperty("过磅称重单价(元/吨)")
    private BigDecimal weightPrice;

    @ApiModelProperty("仓储类型")
    private String storageType;

    @ApiModelProperty("物料名称")
    private String materialName;

    @ApiModelProperty("保存天数")
    private Integer keepDay;

    @ApiModelProperty("小于保存天数的价格")
    private BigDecimal ordPrice;

    @ApiModelProperty("大于保存天数的价格")
    private BigDecimal outOrdPrice;

    @ApiModelProperty("支付方式")
    private String payWay;

    // 关联客户信息
    @TableField(exist = false)
    @ApiModelProperty("客户信息")
    private Customer customer;
}