|
@@ -239,7 +239,7 @@ public class CoreUtil {
|
|
|
//将 object 中 field 所代表的值 设置为 value
|
|
|
String key = (String)field.get(object);
|
|
|
String key1 = (String)field1.get(object);
|
|
|
-// String lis_c = key+key1;
|
|
|
+ // String lis_c = key+key1;
|
|
|
String lis_c = key1;
|
|
|
if (value != null && value.get(lis_c) != null) {
|
|
|
Field standField = getDeclaredField(object, unique) ;
|
|
@@ -313,9 +313,19 @@ public class CoreUtil {
|
|
|
// 套餐和明细一样,提示语只取其中一个
|
|
|
if (lis.getName() == null || lis.getDetailName() == null
|
|
|
|| !lis.getName().equals(lis.getDetailName())) {
|
|
|
- map.put("msg", lis.getName() + lis.getDetailName() + lis.getOtherValue());
|
|
|
+ // 有医院原值就提示医院值
|
|
|
+ if (StringUtil.isNotBlank(lis.getResult())) {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + lis.getResult());
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + lis.getOtherValue());
|
|
|
+ }
|
|
|
} else {
|
|
|
- map.put("msg", lis.getDetailName() + lis.getOtherValue());
|
|
|
+ // 有医院原值就提示医院值
|
|
|
+ if (StringUtil.isNotBlank(lis.getResult())) {
|
|
|
+ map.put("msg", lis.getDetailName() + lis.getResult());
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getDetailName() + lis.getOtherValue());
|
|
|
+ }
|
|
|
}
|
|
|
flag = true;
|
|
|
}
|
|
@@ -325,9 +335,17 @@ public class CoreUtil {
|
|
|
if (flag) {
|
|
|
if (lis.getName() == null || lis.getDetailName() == null
|
|
|
|| !lis.getName().equals(lis.getDetailName())) {
|
|
|
- map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ if (StringUtil.isNotBlank(lis.getResult())) {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + lis.getResult());
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ }
|
|
|
} else {
|
|
|
- map.put("msg", lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ if (StringUtil.isNotBlank(lis.getResult())) {
|
|
|
+ map.put("msg", lis.getDetailName() + lis.getResult());
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -641,6 +659,9 @@ public class CoreUtil {
|
|
|
if (lis == null) {
|
|
|
return "";
|
|
|
}
|
|
|
+ if (StringUtil.isNotBlank(lis.getResult())) {
|
|
|
+ return lis.getResult();
|
|
|
+ }
|
|
|
return StringUtil.isNotBlank(lis.getOtherValue()) ? lis.getOtherValue() : subZeroAndDot(lis.getValue().toString());
|
|
|
}
|
|
|
|