|
@@ -158,8 +158,8 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
if(null == toAppUser){
|
|
if(null == toAppUser){
|
|
return HttpRet.fail("受益用户不存在");
|
|
return HttpRet.fail("受益用户不存在");
|
|
}
|
|
}
|
|
- if(appUser.getDiamondCoin().longValue() < transfer.getMoney().longValue()){
|
|
|
|
- return HttpRet.fail("转账金额不足");
|
|
|
|
|
|
+ if(appUser.getDiamondCoinCash().longValue() < transfer.getMoney().longValue()){
|
|
|
|
+ return HttpRet.fail("可转账金额不足");
|
|
}
|
|
}
|
|
//查询当笔限额
|
|
//查询当笔限额
|
|
CfgCommon cfgSignleCommon = cfgCommonService.getCfg(1);
|
|
CfgCommon cfgSignleCommon = cfgCommonService.getCfg(1);
|
|
@@ -188,7 +188,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
|
|
updateAppUser.setUserid(appUser.getUserid());
|
|
updateAppUser.setUserid(appUser.getUserid());
|
|
updateAppUser.setDiamondCoin(appUser.getDiamondCoin() - transfer.getMoney());
|
|
updateAppUser.setDiamondCoin(appUser.getDiamondCoin() - transfer.getMoney());
|
|
updateAppUser.setDiamondCoinCash(appUser.getDiamondCoinCash() - transfer.getMoney());
|
|
updateAppUser.setDiamondCoinCash(appUser.getDiamondCoinCash() - transfer.getMoney());
|
|
- updateAppUser.setDiamondCoinTotal(appUser.getDiamondCoinTotal() + transfer.getMoney());
|
|
|
|
|
|
+ updateAppUser.setDiamondCoinTotal(appUser.getDiamondCoinTotal() - transfer.getMoney());
|
|
//扣减余额
|
|
//扣减余额
|
|
appUserService.updateAppUser(appUser);
|
|
appUserService.updateAppUser(appUser);
|
|
|
|
|