瀏覽代碼

修复bug

dos 1 月之前
父節點
當前提交
cbbaa108cd

+ 2 - 2
game-business/src/main/java/com/game/business/controller/AppAgentController.java

@@ -94,8 +94,8 @@ public class AppAgentController extends BaseController {
         if(null != redisCache.getCacheMapValue(CacheConstants.USER_AGENT_TEAM_PHASE,String.valueOf(topUserId))){
             money = redisCache.getCacheMapValue(CacheConstants.USER_AGENT_TEAM_PHASE,String.valueOf(topUserId));
         }
-        if(null != appUserAgent.getDividendGuaranteeRate()){
-            money = money * appUserAgent.getDividendGuaranteeRate();
+        if(money >0 && null != appUserAgent.getDividendGuaranteeRate()){
+            money = money * appUserAgent.getDividendGuaranteeRate() ;
         }
         //预计分红
         vo.setMyCommission(BigDecimal.valueOf(money).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue());

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

@@ -84,7 +84,7 @@ public class AppUserCountDividendServiceImpl extends ServiceImpl<AppUserCountDiv
      * @return 结果
      */
     @Override
-    @Async
+    @Transactional
     public void insertAppUserCountDividend(AppUserCountDividend appUserCountDividend) {
                 appUserCountDividend.setCreateTime(DateUtils.getNowDate());
           LambdaQueryWrapper<AppUserCountDividend> queryWrapper = new LambdaQueryWrapper<>();