添加联查信息方法
parent
a2c2d9e29e
commit
47fdfa7637
|
@ -202,7 +202,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
|
|||
}
|
||||
String limitSelect = sql + limit;
|
||||
SegmentTask segmentTask = new SegmentTask(limitSelect, tableId, basicId,newAndOldMap, Weight.getWeight(weigh));
|
||||
log.info("创建任务添加到队列当中");
|
||||
queue.add(segmentTask);
|
||||
log.info("添加到queue里成功");
|
||||
}
|
||||
|
||||
// 启动线程池执行任务
|
||||
|
|
|
@ -42,6 +42,8 @@ public class SegmentTask implements Runnable, Comparable<SegmentTask> {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
log.info("开始执行任务:" + basicId + " " + sql + " " + weight + " " + tableId, tableId);
|
||||
// 查询数据
|
||||
Result<List<List<DataValue>>> tableValue = dataValueClient.findTableValue(basicId, sql);
|
||||
List<List<DataValue>> data = tableValue.getData();
|
||||
|
|
Loading…
Reference in New Issue