|
@@ -523,8 +523,8 @@ public class EdosUtil implements IEdosUtil {
|
|
|
|
|
|
if (StringUtils.notEmp(point) && StringUtils.notEmp(point.getNemCode()) && !initialcode.equals(point.getNemCode())) {
|
|
if (StringUtils.notEmp(point) && StringUtils.notEmp(point.getNemCode()) && !initialcode.equals(point.getNemCode())) {
|
|
Optional<String> keys = Optional.ofNullable(point.getNemCode());
|
|
Optional<String> keys = Optional.ofNullable(point.getNemCode());
|
|
- List<String> ls = new ArrayList<>();
|
|
|
|
- ls.add(String.valueOf(keys));
|
|
|
|
|
|
+ List<String> ls = keys.map(Collections::singletonList)
|
|
|
|
+ .orElse(Collections.emptyList());
|
|
List<PointData> realData = getRealData(ls);
|
|
List<PointData> realData = getRealData(ls);
|
|
return realData.get(0);
|
|
return realData.get(0);
|
|
} else {
|
|
} else {
|