package cn.iocoder.yudao.module.mes.controller.admin.pro.ai.vo; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.math.BigDecimal; import java.util.List; @Schema(description = "管理后台 - AI 物料短缺预测响应 VO") @Data public class MesProAiMaterialPredictRespVO { @Schema(description = "整体风险等级:1=低风险 2=中风险 3=高风险", example = "2") private Integer riskLevel; @Schema(description = "AI 综合分析") private String reasoning; @Schema(description = "物料风险明细") private List riskItems; @Schema(description = "物料风险项") @Data public static class RiskItem { @Schema(description = "物料编码", example = "MAT-001") private String itemCode; @Schema(description = "物料名称", example = "螺丝") private String itemName; @Schema(description = "需求量", example = "1000") private BigDecimal requiredQuantity; @Schema(description = "库存可用量", example = "500") private BigDecimal availableQuantity; @Schema(description = "短缺数量", example = "500") private BigDecimal shortageQuantity; @Schema(description = "风险等级:充足/紧张/短缺", example = "短缺") private String riskLevel; @Schema(description = "建议措施", example = "建议紧急采购") private String suggestion; } }