测试线程池

master
lwj 2024-09-08 02:52:08 +08:00
parent 7896f7c047
commit 7376025475
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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) {
for (DataValue dataValue : datum) {
log.info(datum.toString());
for (DataValue dataValue : datum) {
log.info(dataValue.toString());
String key = dataValue.getKey();
log.info("传来的值的键为{}",key);
String newKey = newAndOldMap.get(key);