package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 改价记录
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("price_change_record")
public class PriceChangeRecord extends BaseModel<PriceChangeRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 订单id
     */
    private String orderId;
    /**
     * 改价类型
     */
    private String priceType;
    /**
     * 价钱
     */
    private Float price;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    public static class QueryFiles {

        public static final String ORDER_ID = "order_id";

    }
}
