package com.openhis.web.inhospitalnursestation.dto;

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 java.math.BigDecimal;
import java.util.List;

/**
 * 科室耗材参数
 *
 * @author wuayn
 * @date 2025-11-07
 */
@Data
@Accessors(chain = true)
public class OrgDeviceSummaryParam {

    /** 项目id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long itemId;

    /** 库存id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long inventoryItemId;

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

    /** 盈亏数量 */
    private BigDecimal stockTakeQuantity;

    /** 批号 */
    private String lotNumber;

    /** 发放地点 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sourceLocationId;

    /** 使用单位 */
    @Dict(dictCode = "unit_code")
    private String useUnitCode;
    private String useUnitCode_dictText;

    /** 最小单位 */
    @Dict(dictCode = "unit_code")
    private String minUnitCode;
    private String minUnitCode_dictText;

    /** 拆零比 */
    private BigDecimal partPercent;

    /** 发放id列表 */
    private List<Long> dispenseIdList;

}
