Bladeren bron

金额为0,停止发放

dos 2 weken geleden
bovenliggende
commit
cb61a4316d

+ 3 - 0
game-business/src/main/java/com/game/business/service/impl/AppUserCountDividendServiceImpl.java

@@ -178,6 +178,9 @@ public class AppUserCountDividendServiceImpl extends ServiceImpl<AppUserCountDiv
         if(null == dividendList || dividendList.size() < 1){
             return HttpRet.fail("发放失败,不存在或已发放");
         }
+        if(StringUtils.isNotBlank(userId) && dividendList.size() == 1 && dividendList.get(0).getDiamondCoin() < 1 && dividendList.get(0).getCoin() < 1){
+            return HttpRet.fail("发放失败,金额为0");
+        }
         /*dividendList = dividendList.stream().filter(e->e.getStatus().intValue() == 0).collect(Collectors.toList());
         if(dividendList.size() < 1){
             return HttpRet.fail("发放失败,不存在或已发放");