From 7299ee0d060cfaafe05c29fcf59f15b7b738759c Mon Sep 17 00:00:00 2001 From: s-choi Date: Tue, 29 Sep 2026 15:08:16 +0900 Subject: [PATCH] =?UTF-8?q?[EDIT]=20=E4=BD=99=E8=A8=88=E3=81=AA=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E3=82=92=E5=89=8A=E9=99=A4=E3=81=97=E3=81=BE=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/domain/service/AllocationService.java | 2 -- .../service/impl/AllocationServiceImpl.java | 22 ------------------- 2 files changed, 24 deletions(-) diff --git a/src/main/java/com/example/demo/app/domain/service/AllocationService.java b/src/main/java/com/example/demo/app/domain/service/AllocationService.java index 753a356..1f922cc 100644 --- a/src/main/java/com/example/demo/app/domain/service/AllocationService.java +++ b/src/main/java/com/example/demo/app/domain/service/AllocationService.java @@ -8,6 +8,4 @@ public interface AllocationService { public List findAll(); - public List save(List allocationModelList); - } diff --git a/src/main/java/com/example/demo/app/domain/service/impl/AllocationServiceImpl.java b/src/main/java/com/example/demo/app/domain/service/impl/AllocationServiceImpl.java index 5f18d33..d2d836c 100644 --- a/src/main/java/com/example/demo/app/domain/service/impl/AllocationServiceImpl.java +++ b/src/main/java/com/example/demo/app/domain/service/impl/AllocationServiceImpl.java @@ -1,6 +1,5 @@ package com.example.demo.app.domain.service.impl; -import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Service; @@ -26,26 +25,5 @@ public class AllocationServiceImpl implements AllocationService { return AllocationEntity.createAllocationModelList(allocationRepository.findAll()); } - public List save(List allocationModelList) { - - List allocationEntityList = new ArrayList<>(); - - allocationModelList.forEach(allocationModel -> { - allocationEntityList.add( - AllocationModel.convertTo( - categoryRepository.findById(allocationModel.getCategoryId()).get(), - courseRepository.findById(allocationModel.getCourseId()).get(), - allocationModel.getAllocationRatio())); - - }); - - List result = new ArrayList<>(); - for (AllocationEntity allocationEntity : allocationEntityList) { - result.add(AllocationModel.convertFrom(allocationRepository.save(allocationEntity))); - } - - - return result; - } }