1.大哥数据入库时进行大哥总金币运算
This commit is contained in:
@@ -35,6 +35,7 @@ public class ServerBigBrotherServiceImpl extends ServiceImpl<ServerBigBrotherMap
|
|||||||
save(bigBrother);
|
save(bigBrother);
|
||||||
} else {
|
} else {
|
||||||
bigBrother.setId(serverBigBrother.getId());
|
bigBrother.setId(serverBigBrother.getId());
|
||||||
|
bigBrother.setTotalGiftCoins(bigBrother.getHistoricHighCoins()+serverBigBrother.getTotalGiftCoins());
|
||||||
updateById(bigBrother);
|
updateById(bigBrother);
|
||||||
stopWatch.stop();
|
stopWatch.stop();
|
||||||
long totalTimeMillis = stopWatch.getTotalTimeMillis();
|
long totalTimeMillis = stopWatch.getTotalTimeMillis();
|
||||||
|
|||||||
Reference in New Issue
Block a user