|
@@ -168,6 +168,10 @@ public class AppUserCountDividendServiceImpl extends ServiceImpl<AppUserCountDiv
|
|
|
if(null == dividendList || dividendList.size() < 1){
|
|
|
return HttpRet.fail("发放失败,不存在或已发放");
|
|
|
}
|
|
|
+ dividendList = dividendList.stream().filter(e->e.getStatus().intValue() == 0).collect(Collectors.toList());
|
|
|
+ if(dividendList.size() < 1){
|
|
|
+ return HttpRet.fail("发放失败,不存在或已发放");
|
|
|
+ }
|
|
|
|
|
|
if(curUser.getDiamondCoin() < dividendList.stream().mapToDouble(e->e.getDiamondCoin()).sum()){
|
|
|
return HttpRet.fail("发放失败,余额不足");
|