Compare commits

..

No commits in common. "4fd05ddd595d77d6e773a35722debbf716ead305" and "56cc2ff2e08661608267ce91185ef4e021ead9c1" have entirely different histories.

4 changed files with 4 additions and 9 deletions

View File

@ -1617,11 +1617,10 @@ export async function getCategoryColumnsByMenu(
logger.info("📥 메뉴별 카테고리 컬럼 조회 요청", { menuObjid, companyCode });
if (!menuObjid) {
res.status(400).json({
return res.status(400).json({
success: false,
message: "메뉴 OBJID가 필요합니다.",
});
return;
}
// 1. 형제 메뉴 조회
@ -1649,12 +1648,11 @@ export async function getCategoryColumnsByMenu(
logger.info("✅ 형제 메뉴 테이블 조회 완료", { tableNames, count: tableNames.length });
if (tableNames.length === 0) {
res.json({
return res.json({
success: true,
data: [],
message: "형제 메뉴에 연결된 테이블이 없습니다.",
});
return;
}
// 3. 테이블들의 카테고리 타입 컬럼 조회 (테이블 라벨 포함)

View File

@ -23,8 +23,7 @@ export interface CodeInfo {
description?: string | null;
sort_order: number;
is_active: string;
company_code: string;
menu_objid?: number | null; // 메뉴 기반 코드 관리용
company_code: string; // 추가
created_date?: Date | null;
created_by?: string | null;
updated_date?: Date | null;

View File

@ -161,8 +161,6 @@ class NumberingRuleService {
companyCode: string,
menuObjid?: number
): Promise<NumberingRuleConfig[]> {
let siblingObjids: number[] = []; // catch 블록에서 접근 가능하도록 함수 최상단에 선언
try {
logger.info("메뉴별 사용 가능한 채번 규칙 조회 시작 (메뉴 스코프)", {
companyCode,
@ -172,6 +170,7 @@ class NumberingRuleService {
const pool = getPool();
// 1. 형제 메뉴 OBJID 조회
let siblingObjids: number[] = [];
if (menuObjid) {
siblingObjids = await getSiblingMenuObjids(menuObjid);
logger.info("형제 메뉴 OBJID 목록", { menuObjid, siblingObjids });

View File

@ -2057,7 +2057,6 @@ export class TableManagementService {
sortBy?: string;
sortOrder?: string;
enableEntityJoin?: boolean;
companyCode?: string; // 멀티테넌시 필터용
additionalJoinColumns?: Array<{
sourceTable: string;
sourceColumn: string;