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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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 java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 追溯码明细
 *
 * @author yuxj
 * @date 2025-07-08
 */
@Data
@Accessors(chain = true)
public class TraceNoDetailsPageDto{

    /** ID */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 药品名 */
    private String name;

    /** 药房药库 */
    private Long locationId;
    private String locationName;

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

    /** 追溯码 */
    private String traceNo;

    /** 追溯码状态 */
    private Integer statusEnum;
    private String statusEnum_enumText;

    /** 追溯码单位 */
    @Dict(dictCode = "unit_code")
    private String unitCode;
    private String unitCode_dictText;

    /** 操作类型 */
    private Integer operationType;
    private String operationType_enumText;

    /** 项目类型 */
    private Integer itemType;
    private String itemType_enumText;

    /** 进出时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

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