Browse Source

快手-实时获取账户组信息-修改操作建议

yangzian 3 years ago
parent
commit
9cc3040891

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaiShouRealTimeController.java

@@ -203,7 +203,7 @@ public class KuaiShouRealTimeController {
                 unitInfo.setConverNum(unitInfo.getKeyAction().intValue());
             }
             //转化成本 = 花费 / 转化数
-            unitInfo.setConverCost(unitInfo.getConverNum() == 0 ? 0 : unitInfo.getCharge().doubleValue() /  unitInfo.getConverNum().doubleValue());
+            unitInfo.setConverCost(Check.isNull(unitInfo.getCharge()) || Check.isNull(unitInfo.getConverNum())  ? 0 : unitInfo.getCharge().doubleValue() /  unitInfo.getConverNum().doubleValue());
             //操作建议
             //消耗
             Double charge = unitInfo.getCharge().doubleValue();