|
@@ -41,6 +41,7 @@ import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
import java.time.ZoneId;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author supeng
|
|
* @author supeng
|
|
@@ -381,7 +382,7 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
|
|
|
|
|
|
|
|
|
|
long start = System.nanoTime();
|
|
long start = System.nanoTime();
|
|
|
- log.info("videoExecutionTaskCreateHandler start");
|
|
|
|
|
|
|
+ log.info("videoExecutionTaskCreateHandler start: {}", JSONObject.toJSONString(paramJson));
|
|
|
|
|
|
|
|
String table = paramJson.getOrDefault("table", yesterdayReturnVideoTable);
|
|
String table = paramJson.getOrDefault("table", yesterdayReturnVideoTable);
|
|
|
String dt = paramJson.get("dt");
|
|
String dt = paramJson.get("dt");
|
|
@@ -447,6 +448,14 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
contentList.add(sdExecutionTaskContent);
|
|
contentList.add(sdExecutionTaskContent);
|
|
|
boolean createResult = executionTaskCreateService.create(sdExecutionTask, contentList);
|
|
boolean createResult = executionTaskCreateService.create(sdExecutionTask, contentList);
|
|
|
log.info("videoExecutionTaskCreateHandler sdExecutionTask create videoId = {} result={}", videoId, createResult);
|
|
log.info("videoExecutionTaskCreateHandler sdExecutionTask create videoId = {} result={}", videoId, createResult);
|
|
|
|
|
+
|
|
|
|
|
+ // 内容库添加数据
|
|
|
|
|
+ ContentProfile contentProfile = new ContentProfile();
|
|
|
|
|
+ contentProfile.setContentId(videoId);
|
|
|
|
|
+ contentProfile.setContentType(ContentTypeEnum.VIDEO.getValue());
|
|
|
|
|
+ contentProfile.setStage(ContentProfileStageEnum.DECONSTRUCTION_SELECT_TOPIC.getValue());
|
|
|
|
|
+ contentProfileService.insertOrUpdate(contentProfile);
|
|
|
|
|
+
|
|
|
count++;
|
|
count++;
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("videoExecutionTaskCreateHandler error {}", record, e);
|
|
log.error("videoExecutionTaskCreateHandler error {}", record, e);
|
|
@@ -539,7 +548,15 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
if (StringUtils.isEmpty(dtList)) {
|
|
if (StringUtils.isEmpty(dtList)) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- for (String dt : dtList.split(",")) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ List<String> dts = Arrays.stream(dtList.split(","))
|
|
|
|
|
+ .filter(StringUtils::isNotEmpty)
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+
|
|
|
|
|
+ log.info("batchCreateDeconstructTask: {}", dts);
|
|
|
|
|
+
|
|
|
|
|
+ for (String dt : dts) {
|
|
|
|
|
+ log.info("batchCreateDeconstructTask start submit: {}", dt);
|
|
|
JSONObject paramJson = new JSONObject();
|
|
JSONObject paramJson = new JSONObject();
|
|
|
paramJson.put("table", "loghubods.supply_demand_task_video_collect_exp_top");
|
|
paramJson.put("table", "loghubods.supply_demand_task_video_collect_exp_top");
|
|
|
paramJson.put("contentScope", contentScope);
|
|
paramJson.put("contentScope", contentScope);
|