+ 이번달의
+ 은행 자동이체 내역 입력 현황을
+ 확인하세요.
+
+
+ -
+
-
+
+
수입
+ 미등록 + +
+ -
+
+
지출
+ 등록완료 + +
+
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsDao.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsDao.java
new file mode 100644
index 00000000..cf20430e
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsDao.java
@@ -0,0 +1,26 @@
+package app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence;
+
+import app.module.core.config.application.util.CommonUtil;
+import app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence.model.RemoveMonthForestProductsParam;
+import app.module.core.usecase.product.removeMonthForestProducts.ports.RemoveMonthForestProductsPortOut;
+import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
+import lombok.RequiredArgsConstructor;
+import org.springframework.stereotype.Repository;
+
+import java.time.LocalDateTime;
+
+@Repository
+@RequiredArgsConstructor
+class RemoveMonthForestProductsDao implements RemoveMonthForestProductsPortOut {
+
+ private final RemoveMonthForestProductsMapper mapper;
+
+ @Override
+ public void operate(RemoveMonthForestProductsCmd command) {
+ String loginUser = CommonUtil.getLoginUsername();;
+ LocalDateTime now = LocalDateTime.now();
+
+ mapper.deleteForestProducts(
+ new RemoveMonthForestProductsParam(command.getId(), command.getHouseholdSeq(), now, loginUser, now, loginUser));
+ }
+}
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsMapper.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsMapper.java
new file mode 100644
index 00000000..4bbb1873
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/RemoveMonthForestProductsMapper.java
@@ -0,0 +1,9 @@
+package app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence;
+
+import app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence.model.RemoveMonthForestProductsParam;
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface RemoveMonthForestProductsMapper {
+ void deleteForestProducts(RemoveMonthForestProductsParam param);
+}
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/model/RemoveMonthForestProductsParam.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/model/RemoveMonthForestProductsParam.java
new file mode 100644
index 00000000..227bd923
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/adapters/persistence/model/RemoveMonthForestProductsParam.java
@@ -0,0 +1,20 @@
+package app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence.model;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.time.LocalDateTime;
+import java.util.Set;
+
+@Getter
+@Setter
+@AllArgsConstructor
+public class RemoveMonthForestProductsParam {
+ private Long id;
+ private Long householdSeq;
+ private LocalDateTime updatedAt;
+ private String updatedBy;
+ private LocalDateTime deletedAt;
+ private String deletedBy;
+}
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortIn.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortIn.java
new file mode 100644
index 00000000..533ee381
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortIn.java
@@ -0,0 +1,7 @@
+package app.module.core.usecase.product.removeMonthForestProducts.ports;
+
+import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
+
+public interface RemoveMonthForestProductsPortIn {
+ void operate(RemoveMonthForestProductsCmd command);
+}
\ No newline at end of file
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortOut.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortOut.java
new file mode 100644
index 00000000..ed6df1df
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/RemoveMonthForestProductsPortOut.java
@@ -0,0 +1,7 @@
+package app.module.core.usecase.product.removeMonthForestProducts.ports;
+
+import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
+
+public interface RemoveMonthForestProductsPortOut {
+ void operate(RemoveMonthForestProductsCmd command);
+}
\ No newline at end of file
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/RemoveMonthForestProductsService.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/RemoveMonthForestProductsService.java
new file mode 100644
index 00000000..a3cbea45
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/RemoveMonthForestProductsService.java
@@ -0,0 +1,19 @@
+package app.module.core.usecase.product.removeMonthForestProducts.ports.application;
+
+import app.module.core.usecase.product.removeMonthForestProducts.ports.RemoveMonthForestProductsPortIn;
+import app.module.core.usecase.product.removeMonthForestProducts.ports.RemoveMonthForestProductsPortOut;
+import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
+import lombok.RequiredArgsConstructor;
+import org.springframework.stereotype.Service;
+
+@Service
+@RequiredArgsConstructor
+class RemoveMonthForestProductsService implements RemoveMonthForestProductsPortIn {
+
+ private final RemoveMonthForestProductsPortOut portOut;
+
+ @Override
+ public void operate(RemoveMonthForestProductsCmd command) {
+ portOut.operate(command);
+ }
+}
\ No newline at end of file
diff --git a/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/domain/RemoveMonthForestProductsCmd.java b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/domain/RemoveMonthForestProductsCmd.java
new file mode 100644
index 00000000..dca3cb1f
--- /dev/null
+++ b/core/src/main/java/app/module/core/usecase/product/removeMonthForestProducts/ports/application/domain/RemoveMonthForestProductsCmd.java
@@ -0,0 +1,17 @@
+package app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Set;
+
+@Getter
+@Setter
+@AllArgsConstructor
+@EqualsAndHashCode
+public class RemoveMonthForestProductsCmd {
+ private Long id;
+ private Long householdSeq;
+}
diff --git a/core/src/main/resources/mappers/product/RemoveMonthForestProductsMapper.xml b/core/src/main/resources/mappers/product/RemoveMonthForestProductsMapper.xml
new file mode 100644
index 00000000..7197e2aa
--- /dev/null
+++ b/core/src/main/resources/mappers/product/RemoveMonthForestProductsMapper.xml
@@ -0,0 +1,16 @@
+
+
+
수입
+ 미등록 + +지출
+ 등록완료 + +수입
+ 미등록 + +지출
+ 등록완료 + +