Merge branch 'dev' into daily
This commit is contained in:
@@ -50,11 +50,49 @@
|
|||||||
color: #ffad0a;
|
color: #ffad0a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-group.table-group {
|
||||||
|
margin-top: 4.8rem;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group {
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
-webkit-justify-content: space-between;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group h3 {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #212529;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group h3 strong {
|
||||||
|
margin-left: 0.4rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #3E9C38;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group .bottom-btn-group {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
table .align-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
table .btn {
|
table .btn {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-height: initial;
|
min-height: initial;
|
||||||
@@ -138,11 +176,13 @@ table.type-form.confirm td {
|
|||||||
padding: 1rem 1.6rem;
|
padding: 1rem 1.6rem;
|
||||||
}
|
}
|
||||||
table thead {
|
table thead {
|
||||||
height: 4.8rem;
|
|
||||||
background-color: #f1f3f5;
|
background-color: #f1f3f5;
|
||||||
border-top: 1px solid #dee2e6;
|
border-top: 1px solid #dee2e6;
|
||||||
border-bottom: 1px solid #dee2e6;
|
border-bottom: 1px solid #dee2e6;
|
||||||
}
|
}
|
||||||
|
table thead tr {
|
||||||
|
height: 4.8rem;
|
||||||
|
}
|
||||||
table thead th {
|
table thead th {
|
||||||
padding: 0rem 1.6rem;
|
padding: 0rem 1.6rem;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -3984,6 +3984,11 @@ button.swiper-pagination-bullet {
|
|||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
.btn.small {
|
||||||
|
padding: 0rem 1.4rem;
|
||||||
|
min-height: 3.6rem;
|
||||||
|
min-width: 8rem !important;
|
||||||
|
}
|
||||||
.btn.arr-up {
|
.btn.arr-up {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-height: initial;
|
min-height: initial;
|
||||||
@@ -6646,11 +6651,49 @@ input[type=number] {
|
|||||||
color: #ffad0a;
|
color: #ffad0a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-group.table-group {
|
||||||
|
margin-top: 4.8rem;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group {
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
-webkit-justify-content: space-between;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group h3 {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #212529;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group h3 strong {
|
||||||
|
margin-left: 0.4rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #3E9C38;
|
||||||
|
}
|
||||||
|
.table-group .table-tit-group .bottom-btn-group {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
table .align-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
table .btn {
|
table .btn {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-height: initial;
|
min-height: initial;
|
||||||
@@ -6734,11 +6777,13 @@ table.type-form.confirm td {
|
|||||||
padding: 1rem 1.6rem;
|
padding: 1rem 1.6rem;
|
||||||
}
|
}
|
||||||
table thead {
|
table thead {
|
||||||
height: 4.8rem;
|
|
||||||
background-color: #f1f3f5;
|
background-color: #f1f3f5;
|
||||||
border-top: 1px solid #dee2e6;
|
border-top: 1px solid #dee2e6;
|
||||||
border-bottom: 1px solid #dee2e6;
|
border-bottom: 1px solid #dee2e6;
|
||||||
}
|
}
|
||||||
|
table thead tr {
|
||||||
|
height: 4.8rem;
|
||||||
|
}
|
||||||
table thead th {
|
table thead th {
|
||||||
padding: 0rem 1.6rem;
|
padding: 0rem 1.6rem;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.config.application.annotation.UpdateCommand;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortOut;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateFrontHouseholdDao implements UpdateFrontHouseholdPortOut {
|
|
||||||
private final UpdateFrontHouseholdMapper mapper;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@UpdateCommand
|
|
||||||
public void operate(UpdateFrontHouseholdCmd cmd) {
|
|
||||||
mapper.update(cmd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateFrontHouseholdMapper {
|
|
||||||
void update(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
|
|
||||||
public interface UpdateFrontHouseholdPortIn {
|
|
||||||
void operate(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
|
|
||||||
public interface UpdateFrontHouseholdPortOut {
|
|
||||||
void operate(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortIn;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortOut;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateFrontHouseholdService implements UpdateFrontHouseholdPortIn {
|
|
||||||
private final UpdateFrontHouseholdPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateFrontHouseholdCmd cmd) { portOut.operate(cmd); }
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetMonthlyInputStatusMapper {
|
|
||||||
|
|
||||||
GetMonthlyInputStatus getMonthlyInputStatus(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetMonthlyInputStatusService implements GetMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final GetMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetPrevMonthlyInputStatusMapper {
|
|
||||||
|
|
||||||
GetPrevMonthlyInputStatus getPrevMonthlyInputStatus(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetPrevMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetPrevMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetPrevMonthlyInputStatusService implements GetPrevMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final GetPrevMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateMonthlyInputStatusMapper {
|
|
||||||
void updateMonthlyInputStatus(UpdateMonthlyInputStatusDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
public interface UpdateMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
void operate(UpdateMonthlyInputStatusCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
public interface UpdateMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
void operate(UpdateMonthlyInputStatusCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateMonthlyInputStatusService implements UpdateMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final UpdateMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateMonthlyInputStatusCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.adapters.persistence.model.CreateNoticeDto;
|
|
||||||
import app.module.core.usecase.notice.createNotice.adapters.persistence.model.CreateNoticeHasUploadFilesParam;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface CreateNoticeMapper {
|
|
||||||
void createNotice(CreateNoticeDto dto);
|
|
||||||
void createNoticeHasUploadFile(CreateNoticeHasUploadFilesParam param);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNotice;
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateNoticePortIn {
|
|
||||||
|
|
||||||
Optional<CreateNotice> operate(CreateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNotice;
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateNoticePortOut {
|
|
||||||
|
|
||||||
Optional<CreateNotice> operate(CreateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeUploadFile;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetNoticeMapper {
|
|
||||||
|
|
||||||
GetNotice getNotice(GetNoticeCmd command);
|
|
||||||
|
|
||||||
List<GetNoticeUploadFile> getUploadFiles(Long id);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetNoticePortIn {
|
|
||||||
|
|
||||||
Optional<GetNotice> operate(GetNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetNoticePortOut {
|
|
||||||
|
|
||||||
Optional<GetNotice> operate(GetNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.GetNoticePortIn;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.GetNoticePortOut;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetNoticeService implements GetNoticePortIn {
|
|
||||||
|
|
||||||
private final GetNoticePortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetNotice> operate(GetNoticeCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
|
|
||||||
public interface RemoveNoticesPortIn {
|
|
||||||
void operate(RemoveNoticesCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
|
|
||||||
public interface RemoveNoticesPortOut {
|
|
||||||
void operate(RemoveNoticesCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.RemoveNoticesPortIn;
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.RemoveNoticesPortOut;
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class RemoveNoticesService implements RemoveNoticesPortIn {
|
|
||||||
|
|
||||||
private final RemoveNoticesPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(RemoveNoticesCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
|
|
||||||
public interface UpdateNoticePortIn {
|
|
||||||
|
|
||||||
void operate(UpdateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
|
|
||||||
public interface UpdateNoticePortOut {
|
|
||||||
|
|
||||||
void operate(UpdateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.UpdateNoticePortIn;
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.UpdateNoticePortOut;
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateNoticeService implements UpdateNoticePortIn {
|
|
||||||
|
|
||||||
private final UpdateNoticePortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateNoticeCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface CreateForestProductMapper {
|
|
||||||
void createForestProduct(CreateForestProductDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateForestProductPortIn {
|
|
||||||
|
|
||||||
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateForestProductPortOut {
|
|
||||||
|
|
||||||
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.config.application.annotation.CreateCommand;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class CreateForestProductService implements CreateForestProductPortIn {
|
|
||||||
|
|
||||||
private final CreateForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@CreateCommand
|
|
||||||
public Optional<CreateForestProduct> operate(CreateForestProductCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetForestProductMapper {
|
|
||||||
|
|
||||||
GetForestProduct getForestProduct(GetForestProductCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetForestProductPortIn {
|
|
||||||
|
|
||||||
Optional<GetForestProduct> operate(GetForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetForestProductPortOut {
|
|
||||||
|
|
||||||
Optional<GetForestProduct> operate(GetForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.GetForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.GetForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetForestProductService implements GetForestProductPortIn {
|
|
||||||
|
|
||||||
private final GetForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetForestProduct> operate(GetForestProductCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface GetForestProductsPortIn {
|
|
||||||
|
|
||||||
Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface GetForestProductsPortOut {
|
|
||||||
|
|
||||||
Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.GetForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.GetForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetForestProductsService implements GetForestProductsPortIn {
|
|
||||||
|
|
||||||
private final GetForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command) {
|
|
||||||
return portOut.operate(pageable, command);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
public interface GetMonthlyForestProductsPortIn {
|
|
||||||
|
|
||||||
Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
public interface GetMonthlyForestProductsPortOut {
|
|
||||||
|
|
||||||
Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.GetMonthlyForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.GetMonthlyForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetMonthlyForestProductsService implements GetMonthlyForestProductsPortIn {
|
|
||||||
|
|
||||||
private final GetMonthlyForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command) {
|
|
||||||
return portOut.operate(pageable, command);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.adapters.persistence.model.RemoveForestProductsParam;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface RemoveForestProductsMapper {
|
|
||||||
void deleteForestProducts(RemoveForestProductsParam param);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveForestProductsPortIn {
|
|
||||||
void operate(RemoveForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveForestProductsPortOut {
|
|
||||||
void operate(RemoveForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.RemoveForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.RemoveForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class RemoveForestProductsService implements RemoveForestProductsPortIn {
|
|
||||||
|
|
||||||
private final RemoveForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(RemoveForestProductsCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.adapters.persistence.model.UpdateForestProductDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateForestProductMapper {
|
|
||||||
void updateForestProduct(UpdateForestProductDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
|
|
||||||
public interface UpdateForestProductPortIn {
|
|
||||||
|
|
||||||
void operate(UpdateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
|
|
||||||
public interface UpdateForestProductPortOut {
|
|
||||||
|
|
||||||
void operate(UpdateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.UpdateForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.UpdateForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateForestProductService implements UpdateForestProductPortIn {
|
|
||||||
|
|
||||||
private final UpdateForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateForestProductCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,9 +3,9 @@ package app.module.front.usecase.info;
|
|||||||
import app.module.core.config.application.util.CommonUtil;
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
||||||
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.GetNoticesPortIn;
|
import app.module.front.usecase.info.notice.getNotices.ports.GetNoticesPortIn;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNotices;
|
import app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNotices;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNoticesCmd;
|
import app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNoticesCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
package app.module.front.usecase.info.bank.getBanksUI.adapters.web;
|
|
||||||
|
|
||||||
import app.module.core.config.application.util.CommonUtil;
|
|
||||||
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
|
||||||
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.ui.Model;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetBanksUIController {
|
|
||||||
|
|
||||||
private final GetHouseholdPortIn getHouseholdPortIn;
|
|
||||||
|
|
||||||
@GetMapping(path = "/info/bank")
|
|
||||||
String operate(Model model) {
|
|
||||||
|
|
||||||
model.addAttribute("userInfo",
|
|
||||||
getHouseholdPortIn.operate(new GetHouseholdCmd(CommonUtil.getLoginUsername())).orElseThrow());
|
|
||||||
|
|
||||||
return "info/bank/banks";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
package app.module.front.usecase.info.bankUI.getBanksUI.adapters.web;
|
||||||
|
|
||||||
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
|
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
||||||
|
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
||||||
|
import app.module.front.config.application.util.AuthUtil;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.data.domain.Page;
|
||||||
|
import org.springframework.data.domain.Pageable;
|
||||||
|
import org.springframework.data.domain.Sort;
|
||||||
|
import org.springframework.data.web.PageableDefault;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class GetBanksUIController {
|
||||||
|
|
||||||
|
|
||||||
|
private final GetMonthlyInputStatussPortIn portIn;
|
||||||
|
|
||||||
|
@GetMapping(path = "/info/bank")
|
||||||
|
String operate(Model model,
|
||||||
|
@PageableDefault(sort = "month", direction = Sort.Direction.DESC, page = 0, size = 13) Pageable pageable
|
||||||
|
) {
|
||||||
|
|
||||||
|
//TODO 사양 결정이 아직 안되 리스트 가져오는것과 오늘 날짜로 가져오는것 둘다
|
||||||
|
Page<GetMonthlyInputStatuss> list =
|
||||||
|
portIn.operate(
|
||||||
|
pageable,
|
||||||
|
new GetMonthlyInputStatussCmd(
|
||||||
|
null, null, AuthUtil.getUserSeq()));
|
||||||
|
|
||||||
|
model.addAttribute("list", list);
|
||||||
|
|
||||||
|
|
||||||
|
String currentMonth = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM"));
|
||||||
|
|
||||||
|
GetMonthlyInputStatuss matched = list.getContent().stream()
|
||||||
|
.filter(item -> currentMonth.equals(item.getMonth()))
|
||||||
|
.findFirst()
|
||||||
|
.orElseThrow(() -> new NoSuchElementException("해당 월의 데이터가 없습니다."));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TODO 페키지명이 넘무 길어서 그냥
|
||||||
|
model.addAttribute("MonthStatus", MonthStatus.class);
|
||||||
|
|
||||||
|
return "info/bank/banks";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
package app.module.front.usecase.info.monthly.createMonthlyUI.adapters.web;
|
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
|
||||||
import app.module.core.config.application.util.CoreUtil;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
import app.module.front.config.application.response.ApiResponse;
|
|
||||||
import app.module.front.config.application.util.AuthUtil;
|
|
||||||
import app.module.front.usecase.info.monthly.createMonthlyUI.adapters.web.model.CreateMonthlyProductReqVO;
|
|
||||||
import app.module.front.usecase.info.monthly.createMonthlyUI.adapters.web.model.CreateMonthlyReqVO;
|
|
||||||
import jakarta.validation.Valid;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.http.ResponseEntity;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.validation.BindingResult;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class CreateMonthlyController {
|
|
||||||
|
|
||||||
|
|
||||||
private final GetMonthlyInputStatusPortIn getMonthlyInputStatusPortIn;
|
|
||||||
private final CreateForestProductPortIn createForestProductPortIn;
|
|
||||||
private final UpdateMonthlyInputStatusPortIn updateMonthlyInputStatusPortIn;
|
|
||||||
private final CoreUtil coreUtil;
|
|
||||||
|
|
||||||
@PostMapping(path = "/api/front/info/monthly/create")
|
|
||||||
ResponseEntity<?> operate(@RequestBody @Valid CreateMonthlyReqVO reqVO, BindingResult bindingResult){
|
|
||||||
if (bindingResult.hasErrors()) {
|
|
||||||
return coreUtil.getErrorInfo(bindingResult);
|
|
||||||
}
|
|
||||||
GetMonthlyInputStatus currentMonthlyInfo =
|
|
||||||
getMonthlyInputStatusPortIn.operate(
|
|
||||||
new GetMonthlyInputStatusCmd(
|
|
||||||
reqVO.getId(), AuthUtil.getUserSeq())).orElse(null);
|
|
||||||
|
|
||||||
if(!reqVO.getStatus() && reqVO.getProductList()!=null && !reqVO.getProductList().isEmpty()){ // 등록없음 처리가 아님.
|
|
||||||
for(CreateMonthlyProductReqVO item : reqVO.getProductList()){
|
|
||||||
createForestProductPortIn.operate(new CreateForestProductCmd(
|
|
||||||
AuthUtil.getUserSeq(),
|
|
||||||
item.getStreetNum(),
|
|
||||||
item.getLandType(),
|
|
||||||
item.getTown(),
|
|
||||||
item.getAvailableArea(),
|
|
||||||
item.getCropName(),
|
|
||||||
null,
|
|
||||||
item.getLandArea(),
|
|
||||||
currentMonthlyInfo.getMonth(),
|
|
||||||
item.getMainYield(),
|
|
||||||
item.getMainYieldUnitCode(),
|
|
||||||
item.getMainSaleAmount(),
|
|
||||||
item.getMainSaleUnitCode(),
|
|
||||||
item.getSubYield(),
|
|
||||||
item.getSubYieldUnitCode(),
|
|
||||||
item.getSubSaleAmount(),
|
|
||||||
item.getSubSaleUnitCode(),
|
|
||||||
currentMonthlyInfo.getId()
|
|
||||||
));
|
|
||||||
}
|
|
||||||
updateMonthlyInputStatusPortIn.operate(new UpdateMonthlyInputStatusCmd(
|
|
||||||
currentMonthlyInfo.getId(),
|
|
||||||
AuthUtil.getUserSeq(),
|
|
||||||
currentMonthlyInfo.getMonth(),
|
|
||||||
MonthStatus.REGISTERED,
|
|
||||||
currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
|
||||||
currentMonthlyInfo.getBankAutoTransferOutputStatus()
|
|
||||||
));
|
|
||||||
} else {
|
|
||||||
updateMonthlyInputStatusPortIn.operate(new UpdateMonthlyInputStatusCmd(
|
|
||||||
currentMonthlyInfo.getId(),
|
|
||||||
AuthUtil.getUserSeq(),
|
|
||||||
currentMonthlyInfo.getMonth(),
|
|
||||||
MonthStatus.NOTHING,
|
|
||||||
currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
|
||||||
currentMonthlyInfo.getBankAutoTransferOutputStatus()
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return ResponseEntity.ok(ApiResponse.success(null));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface GetMonthlyInputStatusMapper {
|
||||||
|
|
||||||
|
GetMonthlyInputStatus getMonthlyInputStatus(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class GetMonthlyInputStatusService implements GetMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final GetMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.apache.commons.collections4.ListUtils;
|
import org.apache.commons.collections4.ListUtils;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortIn;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortIn;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface GetPrevMonthlyInputStatusMapper {
|
||||||
|
|
||||||
|
GetPrevMonthlyInputStatus getPrevMonthlyInputStatus(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetPrevMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetPrevMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class GetPrevMonthlyInputStatusService implements GetPrevMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final GetPrevMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.config.application.util.CommonUtil;
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface UpdateMonthlyInputStatusMapper {
|
||||||
|
void updateMonthlyInputStatus(UpdateMonthlyInputStatusDto dto);
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
public interface UpdateMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
void operate(UpdateMonthlyInputStatusCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
public interface UpdateMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
void operate(UpdateMonthlyInputStatusCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class UpdateMonthlyInputStatusService implements UpdateMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final UpdateMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operate(UpdateMonthlyInputStatusCmd command) {
|
||||||
|
portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortOut;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortOut;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface CreateForestProductMapper {
|
||||||
|
void createForestProduct(CreateForestProductDto dto);
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence.model;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface CreateForestProductPortIn {
|
||||||
|
|
||||||
|
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface CreateForestProductPortOut {
|
||||||
|
|
||||||
|
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application;
|
||||||
|
|
||||||
|
import app.module.core.config.application.annotation.CreateCommand;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortIn;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortOut;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class CreateForestProductService implements CreateForestProductPortIn {
|
||||||
|
|
||||||
|
private final CreateForestProductPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CreateCommand
|
||||||
|
public Optional<CreateForestProduct> operate(CreateForestProductCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application.domain;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application.domain;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.adapters.persistence.component.AuditCommand;
|
import app.module.core.config.adapters.persistence.component.AuditCommand;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.adapters.persistence;
|
package app.module.front.usecase.info.monthlyProduct.getForestProduct.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.GetForestProductPortOut;
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.GetForestProductPortOut;
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProduct;
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProductCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.getForestProduct.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProductCmd;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface GetForestProductMapper {
|
||||||
|
|
||||||
|
GetForestProduct getForestProduct(GetForestProductCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.getForestProduct.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.getForestProduct.ports.application.domain.GetForestProductCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetForestProductPortIn {
|
||||||
|
|
||||||
|
Optional<GetForestProduct> operate(GetForestProductCmd command);
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user