package com.zzsmart.qomo.kn.cost.manage.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 java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标准成本明细表
 * </p>
 *
 * @author  
 * @since 2024-06-20
 */
@Data
@Accessors(chain = true)
@TableName("cost_standard_detail")
public class CostStandardDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 物料号,关联kn_new_sap_mara表matnr字段
     */
    @TableField("material_number")
    @ApiModelProperty(value = "物料号,关联kn_new_sap_mara表matnr字段")
    private String materialNumber;

    /**
     * 父类物料号
     */
    @TableField("parent_material_number")
    private String parentMaterialNumber;

    /**
     * 版本号id
     */
    @TableField("version_number_id")
    private String versionNumberId;

    /**
     * 层级
     */
    @TableField("level")
    private Integer level;

    /**
     * 图号
     */
    @TableField("figure_number")
    private String figureNumber;

    /**
     * 用量
     */
    @TableField("dosage")
    private String dosage;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 规格
     */
    @TableField("specification")
    private String specification;

    /**
     * bom材料费
     */
    @TableField("bom_cost")
    private BigDecimal bomCost;

    /**
     * 包装费
     */
    @TableField("packing_cost")
    private BigDecimal packingCost;

    /**
     * 本阶辅料费
     */
    @TableField("auxiliary_cost")
    private BigDecimal auxiliaryCost;

    /**
     * 本阶人工费
     */
    @TableField("labor_cost")
    private BigDecimal laborCost;

    /**
     * 机器折旧费
     */
    @TableField("euip_depreciation_cost")
    private BigDecimal euipDepreciationCost;

    /**
     * 机物料消耗费
     */
    @TableField("equip_consume_cost")
    private BigDecimal equipConsumeCost;

    /**
     * 水电费
     */
    @TableField("hydroelectricity_cost")
    private BigDecimal hydroelectricityCost;

    /**
     * 其他制造费
     */
    @TableField("other_cost")
    private BigDecimal otherCost;

    /**
     * 物流费
     */
    @TableField("trail_cost")
    private BigDecimal trailCost;

    /**
     * 制造成本
     */
    @TableField("manufacture_cost")
    private BigDecimal manufactureCost;

    /**
     * 累计人工费
     */
    @TableField("total_labor_cost")
    private BigDecimal totalLaborCost;

    /**
     * 累计机器消耗费
     */
    @TableField("total_equip_consume_cost")
    private BigDecimal totalEquipConsumeCost;

    /**
     * 累计机器折旧费
     */
    @TableField("total_euip_depreciation_cost")
    private BigDecimal totalEuipDepreciationCost;

    /**
     * 累计水电费
     */
    @TableField("total_hydroelectricity_cost")
    private BigDecimal totalHydroelectricityCost;

    /**
     * 累计其它费用
     */
    @TableField("total_other_cost")
    private BigDecimal totalOtherCost;

    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建日期
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 修改日期
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 序号
     */
    @TableField("sort")
    private Integer sort;

}
