package com.dk.mdm.model.response.ivt;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.TimestampTypeHandler;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

/**
 *  出库成本
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ExportTitle("出库成本")
public class OutboundItemCostResponse  {

    /*
     * 数据库字段
     */

    /**
     * 存货批次明细ID
     */
    @ApiModelProperty(value = "存货批次明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String batchId;


    /**
     * 出库明细ID
     */
    @ApiModelProperty(value = "出库明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String outItemId;


    /**
     * 库存ID
     */
    @ApiModelProperty(value = "库存ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String invId;


    /**
     * 出库数量
     */
    @Excel(name = "出库数量")
    @ApiModelProperty(value = "出库数量")
    private BigDecimal outQty;


    /**
     * 成本单价
     */
    @Excel(name = "成本单价")
    @ApiModelProperty(value = "成本单价")
    private BigDecimal costPrice;


    /**
     * 成本金额
     */
    @Excel(name = "成本金额")
    @ApiModelProperty(value = "成本金额")
    private BigDecimal costAmt;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    /**
     * 企业ID
     */
    @ApiModelProperty(value = "企业ID")
    private Integer cpId;





    /*
     * 相关属性
     * @TableField(exist = false)
     */

    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */


    private static final long serialVersionUID = 1L;

}
