package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入库详情，用于记录药品入库的详细信息对象 healthcare_inventory_drugentry_details
 *
 * @author 蒋松霖
 * @date 2024-09-27
 */
@Data
public class HealthcareInventoryDrugentryDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识符，自动增长的主键 */
    private Long id;

    /** 入库记录ID */
    @Excel(name = "入库记录ID")
    private Long entryRecordId;

    /** 库房id */
    @Excel(name = "库房id")
    private Long storeroomId;

    /** 药品档案ID */
    @Excel(name = "药品档案ID")
    private Long drugArchiveId;

    /** 药品名称 */
    @Excel(name = "商品名称")
    private String medicineName;


    /** 条码 */
    @Excel(name = "商品条码")
    private String barcode;

    /** 规格 */
    @Excel(name = "商品规格")
    private String specification;


    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String Manufacturer;

    /** 库存ID */
    @Excel(name = "库存ID")
    private Long drugFilingId;


    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 批次 */
    @Excel(name = "批次")
    private String batch;

    /** 零售价 */
    @Excel(name = "含税价")
    private double price;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private int quantity;

    /** 入库金额 */
    @Excel(name = "含税金额")
    private double  detailAmount;

    /** 有效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

}
