package com.zg.project.wisdom.domain.vo;

import com.zg.framework.aspectj.lang.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

@Data
public class RkAgeDetailVO {
    /* ---------- 仅用于导出分组显示，不落库 ---------- */
    @Excel(name = "库龄分组")     // “>30天”/“>60天”
    private String ageBucket;

    @Excel(name = "ID")
    private Long id;

    /** 项目号 / 项目描述 */
    @Excel(name = "项目号")
    private String xmNo;

    @Excel(name = "项目描述")
    private String xmMs;

    /** 入库时间 & 库龄天数 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rkTime;

    @Excel(name = "库龄(天)")
    private Integer kuLingDays;

    /** 单价、数量、行金额 */
    @Excel(name = "单价")
    private BigDecimal htDj;

    @Excel(name = "数量")
    private BigDecimal realQty;

    @Excel(name = "行金额")
    private BigDecimal amount;

    /** 库位 / 托盘 / 单据号（便于追踪） */
    @Excel(name = "库位")
    private String pcode;

    @Excel(name = "托盘")
    private String trayCode;

    @Excel(name = "单据号")
    private String billNo;
}
