package jnpf.limsEntity;
|
|
/**
|
* 报告状态(lims_qingyandan_report.baogao_zhuangtai)。
|
* 与 {@link BizStatus}、{@link JianyanStatus} 解耦,跟踪报告维度的生命周期。
|
*
|
* 当前业务流转尚未完全定下,先按已确定的初值实现,后续按需扩展。
|
*/
|
public enum BaogaoStatus {
|
|
CREATED("created", "已创建"),
|
PENDING_AUDIT("pending_audit", "待审核"),
|
AUDITED("audited", "已审核"),
|
APPROVED("approved", "已批准");
|
|
private final String code;
|
private final String label;
|
|
BaogaoStatus(String code, String label) {
|
this.code = code;
|
this.label = label;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getLabel() {
|
return label;
|
}
|
|
public static BaogaoStatus fromCode(String code) {
|
for (BaogaoStatus status : values()) {
|
if (status.code.equals(code)) {
|
return status;
|
}
|
}
|
throw new IllegalArgumentException("未知报告状态: " + code);
|
}
|
}
|