|
@@ -1,5 +1,6 @@
|
|
|
package com.qunzhixinxi.hnqz.admin.api.constant;
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
@@ -222,5 +223,15 @@ public final class UpmsType {
|
|
|
* 描述
|
|
|
*/
|
|
|
private final String description;
|
|
|
+
|
|
|
+ public static PharmacyType getByDescription(String description) {
|
|
|
+ for (PharmacyType type : PharmacyType.values()) {
|
|
|
+ if (StrUtil.equals(type.getDescription(), description)) {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|
|
|
}
|