251210_01_ENH: Project CRUD 구현 및 테스트 진행중

This commit is contained in:
2025-12-10 16:23:10 +09:00
parent 47ce0fffbb
commit 49f4e69372
31 changed files with 1024 additions and 35 deletions

View File

@@ -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", "사용자를 찾을 수 없습니다.")