You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
894 B
39 lines
894 B
2 years ago
|
package com.ynxbd.common.action.pay;
|
||
|
|
||
|
import lombok.ToString;
|
||
|
|
||
|
@ToString
|
||
|
public enum PEnum {
|
||
|
NO("匹配失败", "zero", ""),
|
||
|
|
||
|
// ------------------------------------
|
||
|
REG("挂号", "register", "G"),
|
||
|
RECIPE("处方", "recipe", "C"),
|
||
|
IN_HOSP("住院", "in_hosp", "Z"),
|
||
|
|
||
|
CASEBOOK("病例", "in_casebook", "CB"),
|
||
|
|
||
|
OUT_COLLECT("外采", "out_collect", "OC"),
|
||
|
;
|
||
|
|
||
|
public final String NAME;
|
||
|
public final String CODE;
|
||
|
public final String ORDER_CODE;
|
||
|
|
||
|
PEnum(String NAME, String CODE, String ORDER_CODE) {
|
||
|
this.NAME = NAME;
|
||
|
this.CODE = CODE;
|
||
|
this.ORDER_CODE = ORDER_CODE;
|
||
|
}
|
||
|
|
||
|
public static PEnum toEnum(String callNo) {
|
||
|
for (PEnum item : PEnum.values()) {
|
||
|
if (item.CODE.equals(callNo)) {
|
||
|
return item;
|
||
|
}
|
||
|
}
|
||
|
return NO;
|
||
|
}
|
||
|
|
||
|
}
|