[feat] 1.项目信息管理增加序号自增

[fix] 1.修改附件存储数据格式
This commit is contained in:
2024-07-08 20:53:09 +08:00
parent 55e5265152
commit c0e572b4b4
8 changed files with 169 additions and 32 deletions

View File

@@ -0,0 +1,47 @@
package cn.iocoder.yudao.module.pms.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author hhyykk
* @description 项目类型枚举
* @date 2024/7/8
*/
@Getter
@AllArgsConstructor
public enum ProjectTypeEnum {
// 设计
DESIGN("design", "SJ"),
// 检查
CHECK("check", "JC"),
// 勘察设计
SURVEY("survey", "KS"),
// 数智
DIGITAL("digital", "SZ"),
// 咨询
CONSULTING("consulting", "ZX");
/**
* 类型编号
*/
private final String code;
/**
* 类型编码
*/
private final String no;
/**
* 通过code获取no
* @param code 字典编号
* @return 类型编码
*/
public static String getNoByCode(String code) {
for (ProjectTypeEnum value : values()) {
if (value.getCode().equals(code)) {
return value.getNo();
}
}
return null;
}
}