파일 컴포넌트 분리
This commit is contained in:
@@ -185,6 +185,19 @@ export class AuthService {
|
||||
},
|
||||
});
|
||||
|
||||
// DB에서 조회한 원본 사용자 정보 상세 로그
|
||||
console.log("🔍 AuthService - DB 원본 사용자 정보:", {
|
||||
userId: userInfo.user_id,
|
||||
company_code: userInfo.company_code,
|
||||
company_code_type: typeof userInfo.company_code,
|
||||
company_code_is_null: userInfo.company_code === null,
|
||||
company_code_is_undefined: userInfo.company_code === undefined,
|
||||
company_code_is_empty: userInfo.company_code === "",
|
||||
dept_code: userInfo.dept_code,
|
||||
allUserFields: Object.keys(userInfo),
|
||||
companyInfo: companyInfo?.company_name,
|
||||
});
|
||||
|
||||
// PersonBean 형태로 변환 (null 값을 undefined로 변환)
|
||||
const personBean: PersonBean = {
|
||||
userId: userInfo.user_id,
|
||||
@@ -209,6 +222,12 @@ export class AuthService {
|
||||
locale: userInfo.locale || "KR",
|
||||
};
|
||||
|
||||
console.log("📦 AuthService - 최종 PersonBean:", {
|
||||
userId: personBean.userId,
|
||||
companyCode: personBean.companyCode,
|
||||
deptCode: personBean.deptCode,
|
||||
});
|
||||
|
||||
logger.info(`사용자 정보 조회 완료: ${userId}`);
|
||||
return personBean;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user