|
@@ -201,13 +201,13 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
|
}
|
|
|
}
|
|
|
//当前用户扣减余额
|
|
|
- AppUser updateAppUser = new AppUser();
|
|
|
+ /*AppUser updateAppUser = new AppUser();
|
|
|
updateAppUser.setUserid(appUser.getUserid());
|
|
|
updateAppUser.setDiamondCoin(appUser.getDiamondCoin() - transfer.getMoney());
|
|
|
updateAppUser.setDiamondCoinCash(appUser.getDiamondCoinCash() - transfer.getMoney());
|
|
|
updateAppUser.setDiamondCoinTotal(appUser.getDiamondCoinTotal() - transfer.getMoney());
|
|
|
//扣减余额
|
|
|
- appUserService.updateAppUser(updateAppUser);
|
|
|
+ appUserService.updateAppUser(updateAppUser);*/
|
|
|
|
|
|
FinTranAddedInfo addedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
|
FinTranRecord tran = FinTranRecord.initFinTranRecordSomeParams(addedInfo, FinTranType3.TRANSFER_TO_TEAM_DiamondCoin, FinTranType1.U_Outcome_Balance, appUser);
|
|
@@ -216,15 +216,16 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
|
tran.setCurrencyType(TranCurrencyType.Balance.getType());
|
|
|
tran.setRemarks("团队转账");
|
|
|
finTranRecordService.insertFinTranRecord(tran);
|
|
|
+ appUserService.updateUserAmount(tran);
|
|
|
|
|
|
//受益用户增加余额
|
|
|
- AppUser toUpdateAppUser = new AppUser();
|
|
|
+ /*AppUser toUpdateAppUser = new AppUser();
|
|
|
toUpdateAppUser.setUserid(toAppUser.getUserid());
|
|
|
toUpdateAppUser.setDiamondCoin(toAppUser.getDiamondCoin() + transfer.getMoney());
|
|
|
toUpdateAppUser.setDiamondCoinCash(toAppUser.getDiamondCoinCash() + transfer.getMoney());
|
|
|
- updateAppUser.setDiamondCoinTotal(toAppUser.getDiamondCoinTotal() + transfer.getMoney());
|
|
|
+ toUpdateAppUser.setDiamondCoinTotal(toAppUser.getDiamondCoinTotal() + transfer.getMoney());
|
|
|
//增加余额
|
|
|
- appUserService.updateAppUser(toUpdateAppUser);
|
|
|
+ appUserService.updateAppUser(toUpdateAppUser);*/
|
|
|
|
|
|
FinTranAddedInfo toAddedInfo = FinTranAddedInfo.createTranInfo(appUser.getUserid(), 0, 0, AppSceneType.Scene_None, "");
|
|
|
FinTranRecord toTran = FinTranRecord.initFinTranRecordSomeParams(toAddedInfo, FinTranType3.TRANSFER_TO_TEAM_DiamondCoin, FinTranType1.U_Income_Coin_Balance, toAppUser);
|
|
@@ -234,6 +235,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
|
toTran.setFromUid(appUser.getUserid());
|
|
|
tran.setRemarks("团队转账");
|
|
|
finTranRecordService.insertFinTranRecord(toTran);
|
|
|
+ appUserService.updateUserAmount(toTran);
|
|
|
//清除用户缓存
|
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(toAppUser.getUserid())));
|