|
@@ -185,13 +185,13 @@ public class AppUserCountDividendServiceImpl extends ServiceImpl<AppUserCountDiv
|
|
if(dividendList.size() < 1){
|
|
if(dividendList.size() < 1){
|
|
return HttpRet.fail("发放失败,不存在或已发放");
|
|
return HttpRet.fail("发放失败,不存在或已发放");
|
|
}*/
|
|
}*/
|
|
- /*AppUser curUser = appUserService.selectAppUserByUserid(curUserId);
|
|
|
|
- if(curUser.getDiamondCoin() < dividendList.stream().mapToDouble(e->e.getDiamondCoin()).sum()){
|
|
|
|
|
|
+ AppUser user = appUserService.selectAppUserByUserid(sendUserId);
|
|
|
|
+ if(user.getDiamondCoin() < dividendList.stream().mapToDouble(e->e.getDiamondCoin()).sum()){
|
|
return HttpRet.fail("发放失败,余额不足");
|
|
return HttpRet.fail("发放失败,余额不足");
|
|
}
|
|
}
|
|
- if(curUser.getCoin() < dividendList.stream().mapToDouble(e->e.getCoin()).sum()){
|
|
|
|
|
|
+ if(user.getCoin() < dividendList.stream().mapToDouble(e->e.getCoin()).sum()){
|
|
return HttpRet.fail("发放失败,金币不足");
|
|
return HttpRet.fail("发放失败,金币不足");
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
List<Long> userIds = new ArrayList<>();
|
|
List<Long> userIds = new ArrayList<>();
|
|
userIds.add(sendUserId);
|
|
userIds.add(sendUserId);
|
|
//开始发放
|
|
//开始发放
|