|
@@ -310,14 +310,25 @@ public class CoreUtil {
|
|
|
}
|
|
|
if (StringUtil.isNotBlank(lis.getOtherValue())) {
|
|
|
if (lis.getOtherValue().equals(nodeNeoDTO.getVal())) {
|
|
|
- map.put("msg", lis.getName() + lis.getDetailName() + lis.getOtherValue());
|
|
|
+ // 套餐和明细一样,提示语只取其中一个
|
|
|
+ if (lis.getName() == null || lis.getDetailName() == null
|
|
|
+ || !lis.getName().equals(lis.getDetailName())) {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + lis.getOtherValue());
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getDetailName() + lis.getOtherValue());
|
|
|
+ }
|
|
|
flag = true;
|
|
|
}
|
|
|
} else if (lis.getValue() != null) {
|
|
|
double value = lis.getValue();
|
|
|
flag = compareNum(nodeNeoDTO, value);
|
|
|
if (flag) {
|
|
|
- map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ if (lis.getName() == null || lis.getDetailName() == null
|
|
|
+ || !lis.getName().equals(lis.getDetailName())) {
|
|
|
+ map.put("msg", lis.getName() + lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ } else {
|
|
|
+ map.put("msg", lis.getDetailName() + subZeroAndDot(String.valueOf(lis.getValue())));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
map.put("flag", flag);
|