|
@@ -589,11 +589,10 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
}
|
|
}
|
|
|
String dt = xxlJobParamDto.getDt();
|
|
String dt = xxlJobParamDto.getDt();
|
|
|
if (StringUtils.isBlank(dt)) {
|
|
if (StringUtils.isBlank(dt)) {
|
|
|
- LocalDateTime yesterday = LocalDateTime.now().minusDays(1);
|
|
|
|
|
- dt = DateUtil.formatLocalDateTime(yesterday, "yyyyMMdd");
|
|
|
|
|
|
|
+ dt = DateUtil.formatLocalDateTime(LocalDateTime.now(), "yyyyMMdd");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String sql = String.format("select * from %s where dt = %s", table, dt);
|
|
|
|
|
|
|
+ String sql = String.format("select * from %s where dt = %s;", table, dt);
|
|
|
log.info("query sql: {}", sql);
|
|
log.info("query sql: {}", sql);
|
|
|
XxlJobLogger.log("query sql: {}", sql);
|
|
XxlJobLogger.log("query sql: {}", sql);
|
|
|
List<Record> records = odpsManager.query(sql);
|
|
List<Record> records = odpsManager.query(sql);
|
|
@@ -622,7 +621,7 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String contentId = record.getString("videoid");
|
|
String contentId = record.getString("videoid");
|
|
|
- Double weightScore = Double.parseDouble(record.getString("vov"));
|
|
|
|
|
|
|
+ Double weightScore = record.getDouble("vov");
|
|
|
ManualClusterExecutionConfigDTO.ContentDTO content = new ManualClusterExecutionConfigDTO.ContentDTO();
|
|
ManualClusterExecutionConfigDTO.ContentDTO content = new ManualClusterExecutionConfigDTO.ContentDTO();
|
|
|
content.setContentId(contentId);
|
|
content.setContentId(contentId);
|
|
|
content.setWeightScore(weightScore);
|
|
content.setWeightScore(weightScore);
|