|
@@ -276,7 +276,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
FinTranRecord tran = FinTranRecord.initFinTranRecordSomeParams(addedInfo, FinTranType3.TRANSFER_TO_Coin, FinTranType1.U_Outcome_Coin, appUser);
|
|
FinTranRecord tran = FinTranRecord.initFinTranRecordSomeParams(addedInfo, FinTranType3.TRANSFER_TO_Coin, FinTranType1.U_Outcome_Coin, appUser);
|
|
tran.setCoinChange(transfer.getMoney() * -1);
|
|
tran.setCoinChange(transfer.getMoney() * -1);
|
|
tran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
tran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
- tran.setRemarks("金币转账");
|
|
|
|
|
|
+ tran.setRemarks("金币转账:转给" + toAppUser.getUserid());
|
|
appUserService.updateUserAmount(tran);
|
|
appUserService.updateUserAmount(tran);
|
|
|
|
|
|
|
|
|
|
@@ -285,7 +285,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
toTran.setCoinChange(transfer.getMoney());
|
|
toTran.setCoinChange(transfer.getMoney());
|
|
toTran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
toTran.setCurrencyType(TranCurrencyType.Coin.getType());
|
|
toTran.setFromUid(appUser.getUserid());
|
|
toTran.setFromUid(appUser.getUserid());
|
|
- toTran.setRemarks("金币转账");
|
|
|
|
|
|
+ toTran.setRemarks("金币转账: 收到来自" + appUser.getUserid() + "的转账");
|
|
appUserService.updateUserAmount(toTran);
|
|
appUserService.updateUserAmount(toTran);
|
|
//清除用户缓存
|
|
//清除用户缓存
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
redisCache.deleteObject("U:UserInfo:".concat(String.valueOf(appUser.getUserid())));
|
|
@@ -301,8 +301,14 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
Long userId = SecurityUtils.getUserId();
|
|
Long userId = SecurityUtils.getUserId();
|
|
LambdaQueryWrapper<FinTranRecord> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<FinTranRecord> queryWrapper = new LambdaQueryWrapper<>();
|
|
queryWrapper.between(FinTranRecord::getCreateTime,transerRecordDto.getBeginTime().concat(" 00:00:00"),transerRecordDto.getEndTime().concat(" 23:59:59"));
|
|
queryWrapper.between(FinTranRecord::getCreateTime,transerRecordDto.getBeginTime().concat(" 00:00:00"),transerRecordDto.getEndTime().concat(" 23:59:59"));
|
|
- queryWrapper.eq(FinTranRecord::getTranType3,FinTranType3.TRANSFER_TO_TEAM_DiamondCoin.getType());
|
|
|
|
- queryWrapper.eq(FinTranRecord::getTranType1,FinTranType1.U_Income_Coin_Balance.getType());
|
|
|
|
|
|
+ if(0 == transerRecordDto.getCoinType()){
|
|
|
|
+ queryWrapper.eq(FinTranRecord::getTranType3, FinTranType3.TRANSFER_TO_Coin.getType());
|
|
|
|
+ queryWrapper.eq(FinTranRecord::getCurrencyType, 2);
|
|
|
|
+ }else {
|
|
|
|
+ queryWrapper.eq(FinTranRecord::getTranType3, FinTranType3.TRANSFER_TO_TEAM_DiamondCoin.getType());
|
|
|
|
+ queryWrapper.eq(FinTranRecord::getCurrencyType, 4);
|
|
|
|
+ }
|
|
|
|
+
|
|
if(transerRecordDto.getType() == 0){
|
|
if(transerRecordDto.getType() == 0){
|
|
//转出
|
|
//转出
|
|
queryWrapper.eq(FinTranRecord::getFromUid,userId);
|
|
queryWrapper.eq(FinTranRecord::getFromUid,userId);
|