251222_01_FIX : 변수명 변경 및 Entity 생성 모두 빌더 타입으로 교체
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user