|
@@ -11,6 +11,8 @@ import java.math.BigDecimal;
|
|
|
|
|
|
public class NeoUtil {
|
|
|
|
|
|
+ private static String regex = "(.*)\\([a-zA-Z0-9]+\\)";
|
|
|
+
|
|
|
public static NodeNeoDTO updateNodeInfo(NodeInfo nodeInfo) {
|
|
|
NodeNeoDTO nodeNeoDTO = new NodeNeoDTO();
|
|
|
|
|
@@ -109,4 +111,14 @@ public class NeoUtil {
|
|
|
return nodeNeoDTO;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public static String getMedType(String medname) {
|
|
|
+ String medtype = Constants.yaoping;
|
|
|
+ if (medname.matches(regex)) {
|
|
|
+ medtype = Constants.yaopingleibie;
|
|
|
+ }
|
|
|
+
|
|
|
+ return medtype;
|
|
|
+ }
|
|
|
}
|