|
@@ -217,7 +217,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
tran.setCurrencyType(TranCurrencyType.Balance.getType());
|
|
tran.setCurrencyType(TranCurrencyType.Balance.getType());
|
|
tran.setRemarks("团队转账");
|
|
tran.setRemarks("团队转账");
|
|
// finTranRecordService.insertFinTranRecord(tran);
|
|
// finTranRecordService.insertFinTranRecord(tran);
|
|
- appUserService.updateUserAmount(tran);
|
|
|
|
|
|
+ appUserService.updateUserAmount(tran,true);
|
|
|
|
|
|
//受益用户增加余额
|
|
//受益用户增加余额
|
|
/*AppUser toUpdateAppUser = new AppUser();
|
|
/*AppUser toUpdateAppUser = new AppUser();
|
|
@@ -236,7 +236,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
toTran.setFromUid(appUser.getUserid());
|
|
toTran.setFromUid(appUser.getUserid());
|
|
toTran.setRemarks("团队转账");
|
|
toTran.setRemarks("团队转账");
|
|
// finTranRecordService.insertFinTranRecord(toTran);
|
|
// finTranRecordService.insertFinTranRecord(toTran);
|
|
- appUserService.updateUserAmount(toTran);
|
|
|
|
|
|
+ appUserService.updateUserAmount(toTran,false);
|
|
//清除用户缓存
|
|
//清除用户缓存
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(toAppUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(toAppUser.getUserid())));
|
|
@@ -277,7 +277,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
tran.setCoinChange(transfer.getMoney() * -1);
|
|
tran.setCoinChange(transfer.getMoney() * -1);
|
|
tran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
tran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
tran.setRemarks("金币转账:转给" + toAppUser.getUserid());
|
|
tran.setRemarks("金币转账:转给" + toAppUser.getUserid());
|
|
- appUserService.updateUserAmount(tran);
|
|
|
|
|
|
+ appUserService.updateUserAmount(tran,true);
|
|
|
|
|
|
|
|
|
|
FinTranAddedInfo toAddedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
FinTranAddedInfo toAddedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
@@ -286,7 +286,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
toTran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
toTran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
toTran.setFromUid(appUser.getUserid());
|
|
toTran.setFromUid(appUser.getUserid());
|
|
toTran.setRemarks("金币转账: 收到来自" + appUser.getUserid() + "的转账");
|
|
toTran.setRemarks("金币转账: 收到来自" + appUser.getUserid() + "的转账");
|
|
- appUserService.updateUserAmount(toTran);
|
|
|
|
|
|
+ appUserService.updateUserAmount(toTran,false);
|
|
//清除用户缓存
|
|
//清除用户缓存
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(toAppUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(toAppUser.getUserid())));
|