mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-17 11:41:54 +08:00
[feat] 1.项目信息管理增加序号自增
[fix] 1.修改附件存储数据格式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user