|
@@ -97,6 +97,7 @@ public class KuaiShouDimensionVariableServiceImpl extends ServiceImpl<KuaiShouDi
|
|
}
|
|
}
|
|
inputList.add(scheduleTimeList);
|
|
inputList.add(scheduleTimeList);
|
|
}
|
|
}
|
|
|
|
+
|
|
// 智能扩量
|
|
// 智能扩量
|
|
String intelliExtend = dimensionVariable.getIntelliExtend();
|
|
String intelliExtend = dimensionVariable.getIntelliExtend();
|
|
JSONArray intelliExtendArray = JSONArray.parseArray(intelliExtend);
|
|
JSONArray intelliExtendArray = JSONArray.parseArray(intelliExtend);
|
|
@@ -110,6 +111,21 @@ public class KuaiShouDimensionVariableServiceImpl extends ServiceImpl<KuaiShouDi
|
|
inputList.add(intelliExtendList);
|
|
inputList.add(intelliExtendList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ // 行为意向
|
|
|
|
+ String intentionTarget = dimensionVariable.getIntentionTarget();
|
|
|
|
+ JSONArray intentionTargetArray = JSONArray.parseArray(intentionTarget);
|
|
|
|
+ if (!Check.isNull(intentionTargetArray)) {
|
|
|
|
+ List<JSONObject> intelliExtendList = new ArrayList<>();
|
|
|
|
+ for (int i = 0; i < intentionTargetArray.size(); i++) {
|
|
|
|
+ JSONObject intentionTargetJson = new JSONObject();
|
|
|
|
+ intentionTargetJson.put("intention_target", intentionTargetArray.getString(i));
|
|
|
|
+ intelliExtendList.add(intentionTargetJson);
|
|
|
|
+ }
|
|
|
|
+ inputList.add(intelliExtendList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
JSONArray jsonArray = calculateCombination(inputList);
|
|
JSONArray jsonArray = calculateCombination(inputList);
|
|
return jsonArray;
|
|
return jsonArray;
|
|
}
|
|
}
|
|
@@ -122,7 +138,6 @@ public class KuaiShouDimensionVariableServiceImpl extends ServiceImpl<KuaiShouDi
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
public static JSONArray calculateCombination(List<List<JSONObject>> inputList) {
|
|
public static JSONArray calculateCombination(List<List<JSONObject>> inputList) {
|
|
JSONArray array = new JSONArray();
|
|
JSONArray array = new JSONArray();
|
|
List<Integer> combination = new ArrayList<Integer>();
|
|
List<Integer> combination = new ArrayList<Integer>();
|