코드 안보이는현상 수정
This commit is contained in:
@@ -899,6 +899,18 @@ export class TableManagementService {
|
||||
if (search && Object.keys(search).length > 0) {
|
||||
for (const [column, value] of Object.entries(search)) {
|
||||
if (value !== null && value !== undefined && value !== "") {
|
||||
// 🎯 추가 조인 컬럼들은 실제 테이블 컬럼이 아니므로 제외
|
||||
const additionalJoinColumns = [
|
||||
"company_code_status",
|
||||
"writer_dept_code",
|
||||
];
|
||||
if (additionalJoinColumns.includes(column)) {
|
||||
logger.info(
|
||||
`🔍 추가 조인 컬럼 ${column} 검색 조건에서 제외 (실제 테이블 컬럼 아님)`
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 안전한 컬럼명 검증 (SQL 인젝션 방지)
|
||||
const safeColumn = column.replace(/[^a-zA-Z0-9_]/g, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user