3 天以前 83e1b4d0e661f11a407fd6ea86e906b9b87b7180
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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<RiskItem> 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;
    }
 
}