[agent-pipeline] pipe-20260327131904-jedw round-2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.erp.service;
|
||||
|
||||
import com.erp.mapper.CodeMergeMapper;
|
||||
import com.erp.common.BaseService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
@@ -13,11 +13,12 @@ import java.util.stream.Collectors;
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class CodeMergeService {
|
||||
public class CodeMergeService extends BaseService {
|
||||
|
||||
private final CodeMergeMapper codeMergeMapper;
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
private static final String NS = "com.erp.mapper.CodeMergeMapper.";
|
||||
|
||||
// ── Tables With Column ────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
@@ -27,7 +28,7 @@ public class CodeMergeService {
|
||||
public Map<String, Object> getTablesWithColumn(String columnName) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("columnName", columnName);
|
||||
List<Map<String, Object>> rows = codeMergeMapper.getTablesWithColumn(params);
|
||||
List<Map<String, Object>> rows = sqlSession.selectList(NS + "getTablesWithColumn", params);
|
||||
|
||||
// map-underscore-to-camel-case: true 적용 → key = "tableName"
|
||||
List<String> tables = rows.stream()
|
||||
@@ -65,7 +66,7 @@ public class CodeMergeService {
|
||||
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("columnName", columnName);
|
||||
List<Map<String, Object>> tableRows = codeMergeMapper.getTablesWithColumn(params);
|
||||
List<Map<String, Object>> tableRows = sqlSession.selectList(NS + "getTablesWithColumn", params);
|
||||
|
||||
List<Map<String, Object>> preview = new ArrayList<>();
|
||||
int totalRows = 0;
|
||||
|
||||
Reference in New Issue
Block a user