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.
41 lines
984 B
41 lines
984 B
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"),
|
|
|
|
OL_REG("问诊挂号", "ol_register", "OG"),
|
|
|
|
;
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|