251222_01_FIX : 변수명 변경 및 Entity 생성 모두 빌더 타입으로 교체

This commit is contained in:
2025-12-22 14:29:59 +09:00
parent 3dab40c0b2
commit f929c4fb00
28 changed files with 212 additions and 233 deletions

View File

@@ -1,6 +1,6 @@
package com.kri.contact.server.service;
import com.kri.contact.server.common.consts.AppConstant;
import com.kri.contact.server.common.consts.ContactConstant;
import com.kri.contact.server.dto.RoleInfoDto;
import com.kri.contact.server.persistence.repository.RoleRepository;
import lombok.RequiredArgsConstructor;
@@ -21,9 +21,9 @@ public class RoleService {
}
public List<RoleInfoDto> getRoleList(Integer roleCd){
Integer searchRoleCd = roleCd < AppConstant.OUTSOURCE_USER_ROLE ?
AppConstant.OUTSOURCE_USER_ROLE :
AppConstant.FIELDWORK_USER_ROLE;
Integer searchRoleCd = roleCd < ContactConstant.OUTSOURCE_USER_ROLE ?
ContactConstant.OUTSOURCE_USER_ROLE :
ContactConstant.FIELDWORK_USER_ROLE;
return roleRepository.findByRoleCdGreaterThanEqual(searchRoleCd).stream()
.map(RoleInfoDto::from)