Fixed the bug that application calls sum incorrect. Because of merge method return a non merged value .

This commit is contained in:
pengys5 2017-09-14 00:13:40 +08:00
parent db57d8de29
commit ac5673f955
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public abstract class AggregationWorker extends AbstractLocalAsyncWorker {
Data data = (Data)message;
dataCache.writing();
if (dataCache.containsKey(data.id())) {
getRole().dataDefine().mergeData(data, dataCache.get(data.id()));
getRole().dataDefine().mergeData(dataCache.get(data.id()), data);
} else {
dataCache.put(data.id(), data);
}