전체 글
-
tiptab 툴바카테고리 없음 2026. 8. 12. 16:48
import { Editor, useEditorState } from '@tiptap/react';import React, { useEffect, useState } from 'react';import { useI18n } from '../../../providers';import { IconButton } from '../IconButton/IconButton';import { TIPTAP_EDITOR_FALLBACK_MESSAGES, TIPTAP_EDITOR_I18N_KEY_MAP } from './editorI18n';interface ImageFileResult { url: string; attchFileNo?: string; attchFileGrpNo?: string;}interface E..
-
소싱그룹관리 쿼리수정 부모데이터 조회DB 2026. 8. 7. 09:49
UseYn 조건의 처리 기준위 쿼리는 useYn 조건을 직접 검색되는 소싱그룹에만 적용하고, 검색 결과의 부모는 트리 표시를 위해 사용 여부와 관계없이 포함합니다.예를 들어:부모: use_yn = N자식: use_yn = Y 이고 useYn = 'Y'로 조회해도 트리 연결을 위해 부모가 함께 나옵니다. 트리 그리드에서 부모를 빼면 자식의 계층이 깨지므로 이 방식이 일반적으로 맞습니다.그리고 현재 ORDER BY c.sg_lvl, p.sort_ord, c.sort_ord는 레벨별 정렬이라, 여러 대분류가 있을 때 완전한 부모-자식 순서가 깨질 가능성이 있습니다. 검색 시 부모 포함 문제와는 별개지만, 4레벨까지 정확한 트리 정렬이 필요하면 경로 기반 정렬 컬럼을 재귀 CTE에서 만드는 방식으로 바꾸는 게 ..
-
list<vo> 비교개발/JAVA 2026. 5. 29. 08:13
public void validateValidToken(List requestList, List dbList) { Map dbTokenMap = dbList.stream() .collect(Collectors.toMap( this::makeKey, PrItemVO::getValidToken )); requestList.stream() .filter(vo -> "update".equalsIgnoreCase(vo.getRowStatus()) || "delete".equalsIgnoreCase(vo.getRowStatus())) .forEach(vo -> { ..
-
MybatisUtil 기능추가개발/JAVA 2026. 5. 26. 11:25
/** * null-safe equals 비교 */ public static boolean equals(Object a, Object b) { return Objects.equals(a, b); } /** * 문자열 equalsIgnoreCase */ public static boolean equalsIgnoreCase(String a, String b) { if (a == null || b == null) { return false; } return a.equalsIgnoreCase(b); } /** * Y/N 비교용 */ public static boolean isYn(Object value, String yn) { return Objects.equals( value == null ? null : v..
-
NumberUtil format 추가개발/JAVA 2026. 5. 26. 09:33
public static String formatAmount(Object value) { return formatAmount(value, 2, ""); } public static String formatAmount(Object value, int scale) { return formatAmount(value, scale, ""); } public static String formatAmount( Object value, int scale, String defaultValue ) { BigDecimal number = toBigDecimal(value); if (number == null) { return defaultValue; } number = number.setScale(scale, Roundin..
-
Spring Security - AuthenticationEntryPoint개발/Spring Boot 2026. 1. 21. 09:17
AuthenticationEntryPoint는 아직 인증(로그인)되지 않은 사용자(Anonymous)가 보호된 자원에 접근했을 때Spring Security가 어떤 방식으로 응답을 시작할지(commence) 결정하는 컴포넌트입니다.즉, Security Filter Chain에서 인증이 필요하다고 판단되었는데(SecurityContext에 인증 객체 없음) → AuthenticationException이 발생 → ExceptionTranslationFilter가 잡아서 → AuthenticationEntryPoint.commence()를 호출합니다.
-
Spring Security - AccessDeniedHandler개발/Spring Boot 2026. 1. 21. 09:14
AccessDeniedHandler 인터페이스권한에 따른 접근 불가한 url에 대한 handler 설정 해당 인터페이스의 구현체를 생성하여 권한에 없는 url접근 시특정 url로 전달하거나 response 응답코드(403) 및 메세지를 설정합니다. 따로 설정을 안한경우 AccessDeniedHandlerImpl의 기본 구현 클래스는 아래와 같습니다.public class AccessDeniedHandlerImpl implements AccessDeniedHandler { protected static final Log logger = LogFactory.getLog(AccessDeniedHandlerImpl.class); private String errorPage; @Override ..