package com.njzscloud.supervisory.order.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njzscloud.supervisory.goods.contant.MoneyStrategy;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单产品表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "order_goods", autoResultMap = true)
public class OrderGoodsEntity {

    /**
     * Id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 产品类型 Id
     */
    private Long goodsCategoryId;

    /**
     * 产品 Id
     */
    private Long originGoodsId;

    /**
     * 产品名称
     */
    private String goodsName;

    /**
     * 单价; 单位：元
     */
    private BigDecimal unitPrice;

    /**
     * 单位; 字典代码：unit
     */
    private String unit;

    /**
     * 计费策略; 字典代码：money_strategy
     */
    private MoneyStrategy moneyStrategy;

    /**
     * 计费配置 Id
     */
    private Long moneyConfigId;

    /**
     * 图片
     */
    private String picture;

    /**
     * 税率
     */
    private BigDecimal taxRate;

    /**
     * 计费方式 in-->入场计费 out-->出场计费
     */
    private String moneyWay;

}
