|
@@ -110,13 +110,14 @@ public class PushTreat {
|
|
List<Drugs> treatment = m.getTreatment();
|
|
List<Drugs> treatment = m.getTreatment();
|
|
kk.put(description,treatment);
|
|
kk.put(description,treatment);
|
|
}
|
|
}
|
|
- /*if(fi.containsKey(disList)){
|
|
|
|
|
|
+ if(fi.containsKey(disList)){
|
|
LinkedHashMap<String, List<Drugs>> jj = fi.get(disList);
|
|
LinkedHashMap<String, List<Drugs>> jj = fi.get(disList);
|
|
Map.Entry<String, List<Drugs>> next = jj.entrySet().iterator().next();
|
|
Map.Entry<String, List<Drugs>> next = jj.entrySet().iterator().next();
|
|
String key = next.getKey();
|
|
String key = next.getKey();
|
|
- if(!key.equals(description)){
|
|
|
|
|
|
+ String key1 = meditionDetails.get(0).getDescription();
|
|
|
|
+ if(!key.equals(key1)){
|
|
int type = getType(key.split(":")[0]);//原来的
|
|
int type = getType(key.split(":")[0]);//原来的
|
|
- int type1 = getType(description.split(":")[0]);//新来的
|
|
|
|
|
|
+ int type1 = getType(key1.split(":")[0]);//新来的
|
|
if(type>type1){
|
|
if(type>type1){
|
|
continue;
|
|
continue;
|
|
}else if(type<type1){
|
|
}else if(type<type1){
|
|
@@ -124,7 +125,7 @@ public class PushTreat {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
fi.put(disList,kk);
|
|
fi.put(disList,kk);
|
|
}
|
|
}
|
|
}
|
|
}
|