瀏覽代碼

自动投放修改_广告语导入回显

zhaoxian 3 年之前
父節點
當前提交
9bbdd70642

+ 6 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouAccountAutoTargetServiceImpl.java

@@ -68,6 +68,12 @@ public class AiKuaishouAccountAutoTargetServiceImpl extends ServiceImpl<AiKuaish
         if (!Check.isNull(requestJson.getJSONArray("keyword"))) {
             target.setKeyword(JSONObject.toJSONString(requestJson.getJSONArray("keyword")));
         }
+        if (!Check.isNull(target.getMax()) && target.getMax() == -1) {
+            target.setMax(null);
+        }
+        if (!Check.isNull(target.getMin()) && target.getMin() == -1) {
+            target.setMin(null);
+        }
         boolean update = this.saveOrUpdate(target);
         if (update) {
             return Result.ok("修改成功");

+ 1 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouGroupServiceImpl.java

@@ -370,7 +370,7 @@ public class KuaiShouGroupServiceImpl extends ServiceImpl<KuaiShouGroupMapper, K
                                 ocpxTrueOrFalse = true;
                             } else {
                                 for (int j = 0; j < ocpxArr.size(); j++) {
-                                    Integer ocpxActionType = (Integer) ocpxArr.get(j);
+                                    Integer ocpxActionType =  ocpxArr.getInteger(j);;
                                     if (ocpxActionType.equals(ocpx_action_type)) {
                                         ocpxTrueOrFalse = true;
                                         break;