测试线程池
parent
7896f7c047
commit
7376025475
|
@ -27,7 +27,7 @@ public interface DataValueClient {
|
|||
* @return
|
||||
*/
|
||||
@PostMapping("/DataValue/findTableValue")
|
||||
public Result findTableValue(@RequestParam("basicId") Long basicId,@RequestParam("sql") String sql);
|
||||
public Result<List<List<DataValue>>> findTableValue(@RequestParam("basicId") Long basicId,@RequestParam("sql") String sql);
|
||||
|
||||
/**
|
||||
* 根据sql查询数据条数
|
||||
|
|
|
@ -247,12 +247,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
|
|||
String limitSelect = sql + limit;
|
||||
log.info("执行查询语句为{}", limitSelect);
|
||||
log.info(databaseId);
|
||||
Result tableValue = dataValueClient.findTableValue(databaseId, limitSelect);
|
||||
List<List<DataValue>> data = (List<List<DataValue>>) tableValue.getData();
|
||||
Result<List<List<DataValue>>> tableValue = dataValueClient.findTableValue(databaseId, limitSelect);
|
||||
List<List<DataValue>> data = tableValue.getData();
|
||||
log.info("远程调用完毕,调用数量{}",data.size());
|
||||
for (List<DataValue> datum : data) {
|
||||
log.info(datum.toString());
|
||||
for (DataValue dataValue : datum) {
|
||||
log.info(datum.toString());
|
||||
log.info(dataValue.toString());
|
||||
String key = dataValue.getKey();
|
||||
log.info("传来的值的键为{}",key);
|
||||
String newKey = newAndOldMap.get(key);
|
||||
|
|
Loading…
Reference in New Issue