|
@@ -129,7 +129,7 @@ public class AppUserCountDividendController extends BaseController
|
|
|
AppUser curUpdateAppUser = new AppUser();
|
|
|
|
|
|
if (null != countDividend.getDiamondCoin() && countDividend.getDiamondCoin() > 0) {
|
|
|
- if(null != countDividend.getDiamondCoin() && appUser.getDiamondCoin() < countDividend.getDiamondCoin()){
|
|
|
+ if(null != countDividend.getDiamondCoin() && curUser.getDiamondCoin() < countDividend.getDiamondCoin()){
|
|
|
throw new ServiceException("余额不足");
|
|
|
}
|
|
|
|
|
@@ -167,7 +167,7 @@ public class AppUserCountDividendController extends BaseController
|
|
|
appUserService.updateUserAmount(tran);
|
|
|
}
|
|
|
if (null != countDividend.getCoin() && countDividend.getCoin() > 0) {
|
|
|
- if(null != countDividend.getCoin() && appUser.getCoin() < countDividend.getCoin()){
|
|
|
+ if(null != countDividend.getCoin() && curUser.getCoin() < countDividend.getCoin()){
|
|
|
throw new ServiceException("金币不足");
|
|
|
}
|
|
|
|