修复编译错误升级依赖版本并同一管理

This commit is contained in:
starxg
2025-10-09 16:40:52 +08:00
parent 8dc6faff0b
commit bd3874b3c7
12 changed files with 248 additions and 229 deletions

View File

@@ -21,7 +21,6 @@
<dependency>
<groupId>com.core</groupId>
<artifactId>core-admin</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@@ -0,0 +1,49 @@
package com.openhis.common.enums;
/**
* medCategoryCode
*
* @author Wuser
* @date 2025/4/21
*/
import com.github.pagehelper.util.StringUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 药品分类枚举
*
* @author YourName
* @date 2025-04-21
*/
@Getter
@AllArgsConstructor
public enum MedCategoryCode {
TRADITIONAL_CHINESE_MEDICINE("1", "中成药"),
WESTERN_MEDICINE("2", "西药"),
EXTERNAL_PURCHASE_MEDICINE("3", "外购药品"),
CHINESE_HERBAL_MEDICINE("4", "中草药"),
OTHER("9", "其他");
private String value;
private String description;
public static MedCategoryCode getByValue(String value) {
if (StringUtil.isEmpty(value)) {
return null;
}
for (MedCategoryCode code : values()) {
if (code.getValue().equals(value)) {
return code;
}
}
return null;
}
}