|
@@ -26,7 +26,10 @@ public class TbIfscService {
|
|
.orElseThrow(() -> new NoSuchElementException("데이터가 존재하지 않습니다: " + id));
|
|
.orElseThrow(() -> new NoSuchElementException("데이터가 존재하지 않습니다: " + id));
|
|
}
|
|
}
|
|
|
|
|
|
- // 전체 데이터 조회
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 정보제공구간 편집 - 전체 데이터 조회
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@Transactional(readOnly = true)
|
|
@Transactional(readOnly = true)
|
|
public List<TbIfscDto> findAll() {
|
|
public List<TbIfscDto> findAll() {
|
|
List<TbIfscDto> result = new ArrayList<>();
|
|
List<TbIfscDto> result = new ArrayList<>();
|
|
@@ -37,6 +40,20 @@ public class TbIfscService {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 삭제되지 않은 정보제공구간 전체 조회
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Transactional(readOnly = true)
|
|
|
|
+ public List<TbIfscDto> findAllList() {
|
|
|
|
+ List<TbIfscDto> result = new ArrayList<>();
|
|
|
|
+ List<TbIfsc> data = this.repo.findAllList();
|
|
|
|
+ for (TbIfsc entity : data) {
|
|
|
|
+ result.add(entity.toDto());
|
|
|
|
+ }
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+
|
|
// 데이터 1건 조회(기존 데이터가 반드시 존재해야 함)
|
|
// 데이터 1건 조회(기존 데이터가 반드시 존재해야 함)
|
|
@Transactional(readOnly = true)
|
|
@Transactional(readOnly = true)
|
|
public TbIfscDto findById(Long id) {
|
|
public TbIfscDto findById(Long id) {
|