251210_01_ENH: Project CRUD 구현 및 테스트 진행중
This commit is contained in:
@@ -169,12 +169,24 @@ public class UserService {
|
||||
.toList();
|
||||
}
|
||||
|
||||
public List<UserInfoDto> getOutsourceList(){
|
||||
List<TUserEntity> userList = userRepository.findByRoleRangeAndDelFalse(
|
||||
AppConstant.OUTSOURCE_USER_ROLE,
|
||||
AppConstant.OUTSOURCE_USER_ROLE + 1000
|
||||
);
|
||||
|
||||
return userList.stream()
|
||||
.map(UserInfoDto::from)
|
||||
.toList();
|
||||
}
|
||||
|
||||
public List<String> getUserCmpnList(){
|
||||
return userRepository.findDistinctUserCmpnAndDelFalse();
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void updateUser(UserInfoDto dto, String modUser){
|
||||
// dirty checking 업데이트
|
||||
TUserEntity entity = userRepository.findByUserIdAndDelFalse(dto.getUserId())
|
||||
.orElseThrow(() ->
|
||||
BusinessException.notFound("USER_NOT_FOUND", "사용자를 찾을 수 없습니다.")
|
||||
|
||||
Reference in New Issue
Block a user