/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.reportmanage.dto;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.openhis.common.annotation.Dict;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 统计科室药品开立情况 dto
 *
 * @author liuhr
 * @date 2025-07-15
 */
@Data
@Accessors(chain = true)
public class MedUseReportInfoDto {

    /** 项目名称 */
    private String name;

    /** 规格 */
    private String totalVolume;

    /** 发放数量 */
    private BigDecimal totalQuantity;

    /** 计量单位 */
    @Dict(dictCode = "unit_code")
    private String unitCode;
    private String unitCode_dictText;
    /** 项目单价 */
    private BigDecimal unitPrice;

    /** 项目总价 */
    private BigDecimal totalMoney;

    /** 产品批号 */
    private String lotNumber;

    /** 厂家 */
    private String manufacturerText;

    /** 开单科室 */
    @Dict(dictTable = "adm_organization", dictCode = "id", dictText = "name")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;
    private String orgId_dictText;

    /** 发放时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date dispenseTime;

}
