[agent-pipeline] pipe-20260328071539-8dqp round-2
This commit is contained in:
@@ -32,10 +32,14 @@ public class TableManagementService extends BaseService {
|
||||
|
||||
public List<Map<String, Object>> getTableList() {
|
||||
List<Map<String, Object>> tables = sqlSession.selectList(NS + "getTableList");
|
||||
// column_count BigInt → Integer 변환
|
||||
// column_count BigInt → Integer 변환 + camelCase 키 추가 (Node 호환)
|
||||
for (Map<String, Object> t : tables) {
|
||||
Object cnt = t.get("column_count");
|
||||
if (cnt instanceof Number) t.put("column_count", ((Number) cnt).intValue());
|
||||
if (cnt instanceof Number) {
|
||||
int intVal = ((Number) cnt).intValue();
|
||||
t.put("column_count", intVal);
|
||||
t.put("columnCount", intVal);
|
||||
}
|
||||
}
|
||||
return tables;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user