Selaa lähdekoodia

Merge remote-tracking branch 'origin/master'

songyh 4 vuotta sitten
vanhempi
commit
403b6b679b

+ 6 - 4
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

@@ -1518,10 +1518,12 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
         // 值 为0 不限预算
         // !0 指定预算
         if (!aiBytedanceAdvertiserStrategy.getAccountBudget().equals(new BigDecimal("0"))){
-            //  前者 < 后者
-            int a = aiBytedanceAdvertiserStrategy.getAccountBudget().compareTo(ruleDataAccountVo.getCost().multiply(new BigDecimal(1.05)));
-            if (a == -1){
-                return Result.errorMsg("预算金额不能低于当前已消费金额的105%");
+            if (!Check.isNull(ruleDataAccountVo)){
+                //  前者 < 后者
+                int a = aiBytedanceAdvertiserStrategy.getAccountBudget().compareTo(ruleDataAccountVo.getCost().multiply(new BigDecimal(1.05)));
+                if (a == -1){
+                    return Result.errorMsg("预算金额不能低于当前已消费金额的105%");
+                }
             }
         }