251222_04_ENH : RequestBody에 Valid 적용 및 중괄호 스타일 통일

This commit is contained in:
2025-12-22 16:50:36 +09:00
parent cf3adf883b
commit 09e0b4ca05
35 changed files with 209 additions and 124 deletions

View File

@@ -22,7 +22,7 @@ public class ResultCodeService {
private final ResultCodeRepository resultCodeRepository;
public void copyResultCodeFromDefault(long prjctIdx, String regUser, LocalDateTime regDt){
public void copyResultCodeFromDefault(long prjctIdx, String regUser, LocalDateTime regDt) {
List<TResultCodeEntity> defaultCodeList = resultCodeRepository.findDefault();
List<TResultCodeEntity> copyCodeList = defaultCodeList.stream()
@@ -32,7 +32,7 @@ public class ResultCodeService {
resultCodeRepository.saveAll(copyCodeList);
}
public List<ResultCodeDto> getResultCode(long prjctIdx, ResultCodeType resultCdTy){
public List<ResultCodeDto> getResultCode(long prjctIdx, ResultCodeType resultCdTy) {
if (resultCdTy == null) {
return resultCodeRepository.findByIdPrjctIdx(prjctIdx).stream()
.map(ResultCodeDto::from)
@@ -45,7 +45,7 @@ public class ResultCodeService {
}
@Transactional
public void updateResultCode(long prjctIdx, List<ResultCodeDto> resultCodeDtoList, String modUser, LocalDateTime modDt){
public void updateResultCode(long prjctIdx, List<ResultCodeDto> resultCodeDtoList, String modUser, LocalDateTime modDt) {
if (resultCodeDtoList != null && !resultCodeDtoList.isEmpty()) {
Map<ResultCodeType, List<ResultCodeDto>> dtoGroupByType = resultCodeDtoList.stream()
.filter(dto -> dto.getResultCdTy() != null)