package com.njzscloud.dispose.cst.order.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njzscloud.dispose.finance.constant.ExpenseItemCategory;
import com.njzscloud.dispose.finance.constant.ExpenseStrategy;
import com.njzscloud.dispose.finance.constant.Unit;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 付费项
 *
 * @author ljw
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "cst_order_expense_items", autoResultMap = true)
public class OrderExpenseItemsEntity {

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

    /**
     * 源付费项 Id；fin_expense_item.id
     */
    private Long originExpenseItemsId;

    /**
     * 订单 Id
     */
    private Long orderId;

    /**
     * 收费项目类型，QiTa-->其他、ChanPin-->产品、YunFei-->运费
     */
    private ExpenseItemCategory expenseItemCategory;

    /**
     * 产品 Id；仅当项目类型为"产品"时有值
     */
    private Long goodsId;

    /**
     * 付费项名称
     */
    private String expenseItemName;

    /**
     * 计费策略；字典代码：expense_strategy，MianFei-->免费、TanXing-->弹性、GuDing-->固定、Che-->车、Fang-->方、JuLi-->距离
     */
    private ExpenseStrategy expenseStrategy;

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

    /**
     * 计量单位；字典代码：unit
     */
    private Unit unit;

    /**
     * 单价；单位：元，弹性模式-->每档价格
     */
    private BigDecimal unitPrice;

    /**
     * 起步价；单位：元，<= 起步量 固定费用
     */
    private BigDecimal initialPrice;

    /**
     * 起步量
     */
    private Integer initialQuantity;

    /**
     * 每档的量
     */
    private Integer everyQuantity;

    /**
     * 归属用户Id
     */
    private Long userId;

    /**
     * 归属客户Id
     */
    private Long customerId;

    /**
     * 归属组织Id
     */
    private Long orgId;

}


