zxl
2025-03-21 5d00461c75205fb306ead59522350fa1e8a3e729
common/src/main/java/com/ycl/common/enums/business/ProjectStatusEnum.java
@@ -27,4 +27,13 @@
        this.type = type;
        this.desc = desc;
    }
    public static String getDescByType(String type) {
        for (ProjectStatusEnum status : ProjectStatusEnum.values()) {
            if (status.type.equals(type)) {
                return status.desc;
            }
        }
        return null; // 如果没有找到对应的类型,可以返回 null 或者抛出异常
    }
}