package org.dromara.web.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.web.domain.FoodIngredientStock;

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



/**
 * 食材出入库视图对象 food_ingredient_stock
 *
 * @author Lion Li
 * @date 2025-08-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FoodIngredientStock.class)
public class FoodIngredientStockVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 食材id
     */
    private Long foodId;

    /**
     * 食材名称
     */
    @ExcelProperty(value = "食材名称")
    private String foodName;

    /**
     * 食材大类Id
     */
    private Long mainClass;

    /**
     * 食材大类名称
     */
    @ExcelProperty(value = "食材大类")
    private String mainClassName;

    /**
     * 食材亚类Id
     */
    private Long subClass;

    /**
     * 食材大类名称
     */
    @ExcelProperty(value = "食材亚类")
    private String subClassName;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String foodNo;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private BigDecimal num;

    /**
     *
     */
    @ExcelProperty(value = "")
    private BigDecimal quantity;

    /**
     * 合计金额
     */
    @ExcelProperty(value = "合计金额")
    private BigDecimal amount;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal unitPrice;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal usedQuantity;

    /**
     * 操作类型
     */
    @ExcelProperty(value = "操作类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "stock_oper_type")
    private String type;

    /**
     * 处方来源
     */
    @ExcelProperty(value = "处方来源", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "treatment_user_type")
    private String visitType;

    /**
     * 库存单位
     */
    @ExcelProperty(value = "库存单位")
    private String stockUnit;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 入库批次
     */
    @ExcelProperty(value = "入库批次")
    private String batch;

    /**
     * 凭证
     */
    @ExcelProperty(value = "凭证")
    private String attachment;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long configDetailId;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long configId;

    /**
     * 生产日期
     */
    @ExcelProperty(value = "生产日期")
    private Date dateInProduced;

    /**
     * 失效日期
     */
    @ExcelProperty(value = "失效日期")
    private Date expiryDate;

    /**
     * 发票号
     */
    @ExcelProperty(value = "发票号")
    private String invoiceNumber;

    /**
     * 科室id
     */
    @ExcelProperty(value = "科室id")
    private Long deptId;

    /**
     * 科室名称
     */
    @ExcelProperty(value = "科室名称")
    private String deptName;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    @ExcelProperty(value = "操作日期")
    private Date createTime;

    private Long createBy;

    @ExcelProperty(value = "操作人")
    private String createByName;


}
