package com.bonus.canteen.core.supply.purchase.domain.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("drp_material_latest_price")
@ApiModel(
   description = "货品最新价格表"
)
@Data
public class DrpMaterialLatestPrice implements Serializable {
   private static final long serialVersionUID = 956715923058494558L;
   @TableId
   private Long id;
   private Long materialId;
   private Long unitId;
   private Integer latestPrice;
   private Integer priceType;
   private String relatedId;
   private String remark;
   private Long supplierId;
   private LocalDateTime startTime;
   private LocalDateTime endTime;
   @TableField(
           value = "createBy",
           fill = FieldFill.INSERT
   )
   private String createBy;
   @TableField(
           value = "createTime",
           fill = FieldFill.INSERT
   )
   private LocalDateTime createTime;
}
