CATEGORY, LEN(CATEGORY) AS M_USER 20자 제한

This commit is contained in:
ysCha 2026-03-19 15:26:47 +09:00
parent 50d8a9e3b9
commit 4db2ddfd83

View File

@ -71,7 +71,12 @@ public class AdminUserConfiguration implements JobExecutionListener {
@Bean
public ItemProcessor<AdminUserSyncResponse, AdminUserSyncResponse> adminUserProcessor() {
return item -> item;
return item -> {
if (item.getCategory() != null && item.getCategory().length() > 20) {
item.setCategory(item.getCategory().substring(0, 20));
}
return item;
};
}
@Bean