package com.zzsmart.qomo.kn.cost.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: app_scene_cost_purchase_price
 * @Author: jeecg-boot
 * @Date: 2024-08-02
 * @Version: V1.0
 */
@Data
@TableName("app_scene_cost_purchase_price")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "app_scene_cost_purchase_price对象", description = "app_scene_cost_purchase_price")
public class AppSceneCostPurchasePrice implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 物料编码
     */
    @Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    /**
     * 物料名称
     */
    @Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String materialName;
    /**
     * 规格型号
     */
    @Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String specification;
    /**
     * 采购类型
     */
    @Excel(name = "采购类型", width = 15)
    @ApiModelProperty(value = "采购类型")
    private String purchaseType;
    /**
     * 供应商代码
     */
    @Excel(name = "供应商代码", width = 15)
    @ApiModelProperty(value = "供应商代码")
    private String supplierCode;
    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称", width = 15)
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;
    /**
     * 采购价时间
     */
    @Excel(name = "采购价时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "采购价时间")
    private Date purchasePriceTime;
    /**
     * 采购价合计
     */
    @Excel(name = "采购价合计", width = 15)
    @ApiModelProperty(value = "采购价合计")
    private BigDecimal purchasePriceSum;
    /**
     * 最低采购单价
     */
    @Excel(name = "最低采购单价", width = 15)
    @ApiModelProperty(value = "最低采购单价")
    private BigDecimal minPurchasePrice;
    /**
     * 最新采购单价
     */
    @Excel(name = "最新采购单价", width = 15)
    @ApiModelProperty(value = "最新采购单价")
    private BigDecimal lastPurchasePrice;
    /**
     * 平均采购价
     */
    @Excel(name = "平均采购价", width = 15)
    @ApiModelProperty(value = "平均采购价")
    private BigDecimal purchasePriceAvg;
    /**
     * 直接材料费
     */
    @Excel(name = "直接材料费", width = 15)
    @ApiModelProperty(value = "直接材料费")
    private BigDecimal directMaterialCost;
    /**
     * 工艺加工费用
     */
    @Excel(name = "工艺加工费用", width = 15)
    @ApiModelProperty(value = "工艺加工费用")
    private BigDecimal processCost;
    /**
     * 运输费用
     */
    @Excel(name = "运输费用", width = 15)
    @ApiModelProperty(value = "运输费用")
    private BigDecimal transportCost;
    /**
     * 模具费用
     */
    @Excel(name = "模具费用", width = 15)
    @ApiModelProperty(value = "模具费用")
    private BigDecimal mouldCost;
    /**
     * 其他费用
     */
    @Excel(name = "其他费用", width = 15)
    @ApiModelProperty(value = "其他费用")
    private BigDecimal ortherCost;
    /**
     * 税率
     */
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private BigDecimal taxTate;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
