diff --git a/src/main/java/com/itn/admin/cmn/config/CustomUserDetailsService.java b/src/main/java/com/itn/admin/cmn/config/CustomUserDetailsService.java index 7e3128c..cf32e1d 100644 --- a/src/main/java/com/itn/admin/cmn/config/CustomUserDetailsService.java +++ b/src/main/java/com/itn/admin/cmn/config/CustomUserDetailsService.java @@ -31,7 +31,7 @@ public class CustomUserDetailsService implements UserDetailsService { if (user == null) { throw new UsernameNotFoundException("User not found"); } - log.info("DB Password: {}", user.getPassword()); +// log.info("DB Password: {}", user.getPassword()); // log.info("Encoded password: {}", passwordEncoder.encode("내가 입력한 비밀번호")); // log.info("match? {}", passwordEncoder.matches("내가 입력한 비밀번호", user.getPassword())); diff --git a/src/main/resources/templates/itn/code/list.html b/src/main/resources/templates/itn/code/list.html index b2a8b25..74b4729 100644 --- a/src/main/resources/templates/itn/code/list.html +++ b/src/main/resources/templates/itn/code/list.html @@ -418,6 +418,8 @@ let currentCodeGroupId; // 전역 변수로 코드 그룹 ID를 저장 + let maxCodeId = 0; + let maxSortOrder = 0; // 코드 상세보기 모달을 표시하는 함수 window.showDetails = function(codeGroupId) { currentCodeGroupId = codeGroupId; // 현재 코드 그룹 ID 저장 @@ -427,7 +429,17 @@ success: function(data) { let detailTableBody = $('#detailTableBody'); detailTableBody.empty(); + maxCodeId = 0; // Reset for the current group + maxSortOrder = 0; // Reset for the current group data.forEach(function(detail) { + let currentCodeId = parseInt(detail.codeId, 10); + if (!isNaN(currentCodeId) && currentCodeId > maxCodeId) { + maxCodeId = currentCodeId; + } + let currentSortOrder = parseInt(detail.sortOrder, 10); + if (!isNaN(currentSortOrder) && currentSortOrder > maxSortOrder) { + maxSortOrder = currentSortOrder; + } detailTableBody.append('