mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 11:42:41 +08:00
Fix oracle datatype error
This commit is contained in:
@ -73,19 +73,19 @@ public class RdbDdlController extends EmbeddingController {
|
||||
PageResult<Table> tableDTOPageResult = tableService.pageQuery(queryParam, tableSelector);
|
||||
List<TableVO> tableVOS = rdbWebConverter.tableDto2vo(tableDTOPageResult.getData());
|
||||
|
||||
ConnectInfo connectInfo = Chat2DBContext.getConnectInfo();
|
||||
singleThreadExecutor.submit(() -> {
|
||||
try {
|
||||
Chat2DBContext.putContext(connectInfo);
|
||||
syncTableVector(request);
|
||||
// syncTableEs(request);
|
||||
} catch (Exception e) {
|
||||
log.error("sync table vector error", e);
|
||||
} finally {
|
||||
Chat2DBContext.removeContext();
|
||||
}
|
||||
log.info("sync table vector finish");
|
||||
});
|
||||
// ConnectInfo connectInfo = Chat2DBContext.getConnectInfo();
|
||||
// singleThreadExecutor.submit(() -> {
|
||||
// try {
|
||||
// Chat2DBContext.putContext(connectInfo);
|
||||
// syncTableVector(request);
|
||||
//// syncTableEs(request);
|
||||
// } catch (Exception e) {
|
||||
// log.error("sync table vector error", e);
|
||||
// } finally {
|
||||
// Chat2DBContext.removeContext();
|
||||
// }
|
||||
// log.info("sync table vector finish");
|
||||
// });
|
||||
return WebPageResult.of(tableVOS, tableDTOPageResult.getTotal(), request.getPageNo(),
|
||||
request.getPageSize());
|
||||
}
|
||||
|
@ -64,19 +64,19 @@ public class TableController extends EmbeddingController {
|
||||
tableSelector.setIndexList(false);
|
||||
PageResult<Table> tableDTOPageResult = tableService.pageQuery(queryParam, tableSelector);
|
||||
List<TableVO> tableVOS = rdbWebConverter.tableDto2vo(tableDTOPageResult.getData());
|
||||
ConnectInfo connectInfo = Chat2DBContext.getConnectInfo();
|
||||
singleThreadExecutor.submit(() -> {
|
||||
try {
|
||||
Chat2DBContext.putContext(connectInfo);
|
||||
syncTableVector(request);
|
||||
// syncTableEs(request);
|
||||
} catch (Exception e) {
|
||||
log.error("sync table vector error", e);
|
||||
} finally {
|
||||
Chat2DBContext.removeContext();
|
||||
}
|
||||
log.info("sync table vector finish");
|
||||
});
|
||||
// ConnectInfo connectInfo = Chat2DBContext.getConnectInfo();
|
||||
// singleThreadExecutor.submit(() -> {
|
||||
// try {
|
||||
// Chat2DBContext.putContext(connectInfo);
|
||||
// syncTableVector(request);
|
||||
//// syncTableEs(request);
|
||||
// } catch (Exception e) {
|
||||
// log.error("sync table vector error", e);
|
||||
// } finally {
|
||||
// Chat2DBContext.removeContext();
|
||||
// }
|
||||
// log.info("sync table vector finish");
|
||||
// });
|
||||
return WebPageResult.of(tableVOS, tableDTOPageResult.getTotal(), request.getPageNo(),
|
||||
request.getPageSize());
|
||||
}
|
||||
|
Reference in New Issue
Block a user