src/main/java/com/ruoyi/procurementrecord/pojo/CustomStorage.java
@@ -3,6 +3,7 @@
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -40,6 +41,29 @@
    @TableField(exist = false)
    private String timeStr;
    // ===== 库存预警相关展示字段(来自 custom_storage_warning_record,非本表字段)=====
    /** 当前库存(页面列 currentStock,SQL 里由 availableStock 别名而来) */
    @TableField(exist = false)
    private BigDecimal currentStock;
    /** 预警级别 */
    @TableField(exist = false)
    private String warningLevel;
    /** 预警状态 */
    @TableField(exist = false)
    private String warningStatus;
    /** 预警时间 */
    @TableField(exist = false)
    private LocalDateTime warningTime;
    /** 预计缺货时间 */
    @TableField(exist = false)
    private LocalDateTime expectedShortageTime;
    /** 建议类型 */
    @TableField(exist = false)
    private String suggestionType;
    /** 建议内容 */
    @TableField(exist = false)
    private String suggestionContent;
    /**
     * 待出库数量
@@ -124,5 +148,13 @@
     */
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    @ApiModelProperty(value = "登记人")
    private String registrant;
    /**
     * 预警数量
     */
    @ApiModelProperty("预警数量")
    private BigDecimal warnNum;
}