|
|
|
|
@ -66,16 +66,6 @@ public class DataGobalController {
|
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void updateProList(List<CommonVo> proList, List<GobalMapIconVo> gobalMapVoList, BiConsumer<GobalMapIconVo, Integer> setter) { |
|
|
|
|
for (GobalMapIconVo gobalMapIconVo : gobalMapVoList) { |
|
|
|
|
for (CommonVo commonVo : proList) { |
|
|
|
|
if (gobalMapIconVo.getName().equals(commonVo.getName())) { |
|
|
|
|
Integer temp = Integer.parseInt(commonVo.getValue()); |
|
|
|
|
setter.accept(gobalMapIconVo, Integer.parseInt(commonVo.getValue()) + temp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|