10 小时以前 9bad721754fe8bbe2e5f459d0706e0fefac569f3
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
package cn.iocoder.yudao.module.qcreport.controller.admin.instance.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * 由质检单生成报告的响应。
 * <p>
 * 除了「生成了哪份报告」,还必须把「这份报告有什么毛病」一起带回来:
 * {@link #undecidableCount} 是其中最关键的一条 —— 检验模板里没配规格上下限时,
 * 检验项会成片判不出来,报告看起来像坏了,其实是数据没配全。前端必须据此提示。
 */
@Schema(description = "管理后台 - 由质检单生成报告 Response VO")
@Data
public class QcReportInstanceGenerateFromQcRespVO {
 
    @Schema(description = "报告实例编号", example = "2048")
    private Long id;
 
    @Schema(description = "报告编号", example = "QR20260919-0001")
    private String reportNo;
 
    @Schema(description = "实际使用的模板版本", example = "v1.0")
    private String templateVersion;
 
    @Schema(description = "本次写入的检验项条数", example = "13")
    private Integer itemCount;
 
    @Schema(description = "没有判定结论的项数(「无判定规则」+ 规则执行失败的「待判定」)", example = "13")
    private Integer undecidableCount;
 
    @Schema(description = "软提示:样品的取舍、跳过的分组项、尚未录入实测值的项")
    private List<String> warnings = new ArrayList<>();
 
    @Schema(description = "渲染期数据缺口:模板绑定了但当时没有值的字段")
    private List<String> errors = new ArrayList<>();
 
}