This commit is contained in:
wangyang
2025-03-29 14:58:02 +08:00
parent 44679f5b4b
commit c30380b756
4 changed files with 142 additions and 122 deletions

View File

@@ -0,0 +1,41 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum FinCategory implements HisEnumInterface {
/**
* 自费
*/
SELF_PAY(1, "1", "自费"),
/**
* 省医保
*/
PROVINCIAL_MEDICAL_INSURANCE(2, "2", "省医保"),
/**
* 市医保
*/
MUNICIPAL_MEDICAL_INSURANCE(4, "4", "市医保");
private Integer value;
private String code;
private String info;
public static FinCategory getByValue(Integer value) {
if (value == null) {
return null;
}
for (FinCategory val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}