feat(invoice): 更新对账发票查询条件和数据传输对象
- 修改 ReconciliationInvoicePageQry 查询类,替换 reconciliationInvoiceId 字段为 dealerId、companyId、reconciliationId、invoiceDate 和 invoiceSn 字段 - 在 ReconciliationInvoiceVO 中添加 dealerVO、companyVO 和 dealerPaymentAccountVO 信息字段 - 更新多个 Assembler 类中的映射配置,包括 ReconciliationInvoiceAssembler、AuditAssembler、CostAssembler 等 - 重构多个执行器类的代码格式,统一字段注入和服务调用方式 - 移除 ProductDestroyCmdExe 中不必要的 ProductAssembler 注入
This commit is contained in:
parent
1e29eda0b4
commit
b582d62a7b
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class})
|
||||
public interface AuditAssembler {
|
||||
|
||||
@Mapping(target = "orderVO", source = "order")
|
||||
@Mapping(target = "orderVO", source = "order")
|
||||
AuditVO toAuditVO(Audit audit);
|
||||
}
|
||||
|
||||
@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface BoxSpecAssembler {
|
||||
|
||||
BoxSpecVO toBoxSpecVO(BoxSpec boxSpec);
|
||||
BoxSpecVO toBoxSpecVO(BoxSpec boxSpec);
|
||||
}
|
||||
|
||||
@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface CostAssembler {
|
||||
|
||||
@Mapping(target = "costItemVOList", source = "costItemList")
|
||||
@Mapping(target = "costItemVOList", source = "costItemList")
|
||||
CostVO toCostVO(Cost cost);
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class})
|
||||
public interface DealerAccountRecordAssembler {
|
||||
|
||||
@Mapping(target = "orderVO", source = "order")
|
||||
@Mapping(target = "orderVO", source = "order")
|
||||
@Mapping(target = "orderShipVO", source = "orderShip")
|
||||
@Mapping(target = "dealerVO", source = "dealer")
|
||||
DealerAccountRecordVO toDealerAccountRecordVO(DealerAccountRecord dealerAccountRecord);
|
||||
|
||||
@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface ExpenseRecordAssembler {
|
||||
|
||||
ExpenseRecordVO toExpenseRecordVO(ExpenseRecord expenseRecord);
|
||||
ExpenseRecordVO toExpenseRecordVO(ExpenseRecord expenseRecord);
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderSupplierAssembler.class})
|
||||
public interface PaymentTaskAssembler {
|
||||
|
||||
@Mapping(target = "supplierVO", source = "supplier")
|
||||
@Mapping(target = "supplierVO", source = "supplier")
|
||||
@Mapping(target = "orderSupplierVOList", source = "orderSupplierList")
|
||||
PaymentTaskVO toPaymentTaskVO(PaymentTask paymentTask);
|
||||
}
|
||||
|
||||
@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface ProductAssembler {
|
||||
|
||||
@Mapping(target = "costVOList", source = "costList")
|
||||
@Mapping(target = "costVOList", source = "costList")
|
||||
ProductVO toProductVO(Product product);
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface ReconciliationAssembler {
|
||||
|
||||
@Mapping(target = "dealerVO", source = "dealer")
|
||||
@Mapping(target = "dealerVO", source = "dealer")
|
||||
@Mapping(target = "companyVO", source = "company")
|
||||
@Mapping(target = "orderShipVOList", source = "orderShipList")
|
||||
ReconciliationVO toReconciliationVO(Reconciliation reconciliation);
|
||||
|
||||
@ -3,6 +3,7 @@ package com.xunhong.erp.turbo.biz.app.assembler;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
|
||||
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.NullValueCheckStrategy;
|
||||
|
||||
/**
|
||||
@ -11,5 +12,8 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface ReconciliationInvoiceAssembler {
|
||||
|
||||
ReconciliationInvoiceVO toReconciliationInvoiceVO(ReconciliationInvoice reconciliationInvoice);
|
||||
@Mapping(target = "dealerVO", source = "dealer")
|
||||
@Mapping(target = "dealerPaymentAccountVO", source = "dealerPaymentAccount")
|
||||
@Mapping(target = "companyVO", source = "company")
|
||||
ReconciliationInvoiceVO toReconciliationInvoiceVO(ReconciliationInvoice reconciliationInvoice);
|
||||
}
|
||||
|
||||
@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
|
||||
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
|
||||
public interface ReconciliationPaymentAssembler {
|
||||
|
||||
ReconciliationPaymentVO toReconciliationPaymentVO(ReconciliationPayment reconciliationPayment);
|
||||
ReconciliationPaymentVO toReconciliationPaymentVO(ReconciliationPayment reconciliationPayment);
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class AuditUpdateCmdExe {
|
||||
|
||||
private final AuditAssembler auditAssembler;
|
||||
private final AuditGateway auditGateway;
|
||||
private final AuditAssembler auditAssembler;
|
||||
private final AuditGateway auditGateway;
|
||||
|
||||
public AuditVO execute(AuditUpdateCmd auditUpdateCmd) {
|
||||
Audit audit = auditGateway.update(auditUpdateCmd);
|
||||
return auditAssembler.toAuditVO(audit);
|
||||
}
|
||||
public AuditVO execute(AuditUpdateCmd auditUpdateCmd) {
|
||||
Audit audit = auditGateway.update(auditUpdateCmd);
|
||||
return auditAssembler.toAuditVO(audit);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecCreateCmdExe {
|
||||
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
|
||||
public BoxSpecVO execute(BoxSpecCreateCmd boxSpecCreateCmd) {
|
||||
BoxSpec boxSpec = boxSpecGateway.save(boxSpecCreateCmd);
|
||||
public BoxSpecVO execute(BoxSpecCreateCmd boxSpecCreateCmd) {
|
||||
BoxSpec boxSpec = boxSpecGateway.save(boxSpecCreateCmd);
|
||||
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecDestroyCmdExe {
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
|
||||
public void execute(BoxSpecDestroyCmd boxSpecDestroyCmd) {
|
||||
boxSpecGateway.destroy(boxSpecDestroyCmd);
|
||||
}
|
||||
public void execute(BoxSpecDestroyCmd boxSpecDestroyCmd) {
|
||||
boxSpecGateway.destroy(boxSpecDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecUpdateCmdExe {
|
||||
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
|
||||
public BoxSpecVO execute(BoxSpecUpdateCmd boxSpecUpdateCmd) {
|
||||
BoxSpec boxSpec = boxSpecGateway.update(boxSpecUpdateCmd);
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
public BoxSpecVO execute(BoxSpecUpdateCmd boxSpecUpdateCmd) {
|
||||
BoxSpec boxSpec = boxSpecGateway.update(boxSpecUpdateCmd);
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class CostCreateCmdExe {
|
||||
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
|
||||
public CostVO execute(CostCreateCmd costCreateCmd) {
|
||||
Cost cost = costGateway.save(costCreateCmd);
|
||||
public CostVO execute(CostCreateCmd costCreateCmd) {
|
||||
Cost cost = costGateway.save(costCreateCmd);
|
||||
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class CostDestroyCmdExe {
|
||||
private final CostGateway costGateway;
|
||||
private final CostGateway costGateway;
|
||||
|
||||
public void execute(CostDestroyCmd costDestroyCmd) {
|
||||
costGateway.destroy(costDestroyCmd);
|
||||
}
|
||||
public void execute(CostDestroyCmd costDestroyCmd) {
|
||||
costGateway.destroy(costDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class CostUpdateCmdExe {
|
||||
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
|
||||
public CostVO execute(CostUpdateCmd costUpdateCmd) {
|
||||
Cost cost = costGateway.update(costUpdateCmd);
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
public CostVO execute(CostUpdateCmd costUpdateCmd) {
|
||||
Cost cost = costGateway.update(costUpdateCmd);
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordCreateCmdExe {
|
||||
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.save(dealerAccountRecordCreateCmd);
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.save(dealerAccountRecordCreateCmd);
|
||||
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordDestroyCmdExe {
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
|
||||
public void execute(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
|
||||
dealerAccountRecordGateway.destroy(dealerAccountRecordDestroyCmd);
|
||||
}
|
||||
public void execute(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
|
||||
dealerAccountRecordGateway.destroy(dealerAccountRecordDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordUpdateCmdExe {
|
||||
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.update(dealerAccountRecordUpdateCmd);
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.update(dealerAccountRecordUpdateCmd);
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ExpenseRecordCreateCmdExe {
|
||||
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
|
||||
public ExpenseRecordVO execute(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.save(expenseRecordCreateCmd);
|
||||
public ExpenseRecordVO execute(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.save(expenseRecordCreateCmd);
|
||||
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ExpenseRecordUpdateCmdExe {
|
||||
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
|
||||
public ExpenseRecordVO execute(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.update(expenseRecordUpdateCmd);
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
public ExpenseRecordVO execute(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.update(expenseRecordUpdateCmd);
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class OrderSupplierUpdateCmdExe {
|
||||
|
||||
private final OrderSupplierAssembler orderSupplierAssembler;
|
||||
private final OrderSupplierGateway orderSupplierGateway;
|
||||
private final OrderSupplierAssembler orderSupplierAssembler;
|
||||
private final OrderSupplierGateway orderSupplierGateway;
|
||||
|
||||
public OrderSupplierVO execute(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
|
||||
OrderSupplier orderSupplier = orderSupplierGateway.update(orderSupplierUpdateCmd);
|
||||
return orderSupplierAssembler.toOrderSupplierVO(orderSupplier);
|
||||
}
|
||||
public OrderSupplierVO execute(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
|
||||
OrderSupplier orderSupplier = orderSupplierGateway.update(orderSupplierUpdateCmd);
|
||||
return orderSupplierAssembler.toOrderSupplierVO(orderSupplier);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordCreateCmdExe {
|
||||
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
|
||||
public PaymentRecordVO execute(PaymentRecordCreateCmd paymentRecordCreateCmd) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.save(paymentRecordCreateCmd);
|
||||
public PaymentRecordVO execute(PaymentRecordCreateCmd paymentRecordCreateCmd) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.save(paymentRecordCreateCmd);
|
||||
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordDestroyCmdExe {
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
|
||||
public void execute(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
|
||||
paymentRecordGateway.destroy(paymentRecordDestroyCmd);
|
||||
}
|
||||
public void execute(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
|
||||
paymentRecordGateway.destroy(paymentRecordDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordUpdateCmdExe {
|
||||
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
|
||||
public PaymentRecordVO execute(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.update(paymentRecordUpdateCmd);
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
public PaymentRecordVO execute(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.update(paymentRecordUpdateCmd);
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskCreateCmdExe {
|
||||
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
|
||||
public PaymentTaskVO execute(PaymentTaskCreateCmd paymentTaskCreateCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.save(paymentTaskCreateCmd);
|
||||
public PaymentTaskVO execute(PaymentTaskCreateCmd paymentTaskCreateCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.save(paymentTaskCreateCmd);
|
||||
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskDestroyCmdExe {
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
|
||||
public void execute(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
|
||||
paymentTaskGateway.destroy(paymentTaskDestroyCmd);
|
||||
}
|
||||
public void execute(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
|
||||
paymentTaskGateway.destroy(paymentTaskDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskPayCmdExe {
|
||||
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
|
||||
public PaymentTaskVO execute(PaymentTaskPayCmd paymentTaskPayCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.pay(paymentTaskPayCmd);
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
public PaymentTaskVO execute(PaymentTaskPayCmd paymentTaskPayCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.pay(paymentTaskPayCmd);
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskUpdateCmdExe {
|
||||
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
|
||||
public PaymentTaskVO execute(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.update(paymentTaskUpdateCmd);
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
public PaymentTaskVO execute(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.update(paymentTaskUpdateCmd);
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductCreateCmdExe {
|
||||
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
|
||||
public ProductVO execute(ProductCreateCmd productCreateCmd) {
|
||||
Product product = productGateway.save(productCreateCmd);
|
||||
public ProductVO execute(ProductCreateCmd productCreateCmd) {
|
||||
Product product = productGateway.save(productCreateCmd);
|
||||
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package com.xunhong.erp.turbo.biz.app.executor.cmd;
|
||||
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductDestroyCmd;
|
||||
import com.xunhong.erp.turbo.biz.app.assembler.ProductAssembler;
|
||||
import com.xunhong.erp.turbo.biz.domain.gateway.ProductGateway;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -14,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class ProductDestroyCmdExe {
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductGateway productGateway;
|
||||
|
||||
public void execute(ProductDestroyCmd productDestroyCmd) {
|
||||
productGateway.destroy(productDestroyCmd);
|
||||
}
|
||||
public void execute(ProductDestroyCmd productDestroyCmd) {
|
||||
productGateway.destroy(productDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductUpdateCmdExe {
|
||||
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
|
||||
public ProductVO execute(ProductUpdateCmd productUpdateCmd) {
|
||||
Product product = productGateway.update(productUpdateCmd);
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
public ProductVO execute(ProductUpdateCmd productUpdateCmd) {
|
||||
Product product = productGateway.update(productUpdateCmd);
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,11 +16,11 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationCompleteCmdExe {
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
|
||||
public ReconciliationVO execute(ReconciliationCompleteCmd reconciliationCompleteCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.complete(reconciliationCompleteCmd);
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
public ReconciliationVO execute(ReconciliationCompleteCmd reconciliationCompleteCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.complete(reconciliationCompleteCmd);
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationCreateCmdExe {
|
||||
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
|
||||
public ReconciliationVO execute(ReconciliationCreateCmd reconciliationCreateCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.save(reconciliationCreateCmd);
|
||||
public ReconciliationVO execute(ReconciliationCreateCmd reconciliationCreateCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.save(reconciliationCreateCmd);
|
||||
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationDestroyCmdExe {
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
|
||||
public void execute(ReconciliationDestroyCmd reconciliationDestroyCmd) {
|
||||
reconciliationGateway.destroy(reconciliationDestroyCmd);
|
||||
}
|
||||
public void execute(ReconciliationDestroyCmd reconciliationDestroyCmd) {
|
||||
reconciliationGateway.destroy(reconciliationDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceCreateCmdExe {
|
||||
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.save(reconciliationInvoiceCreateCmd);
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.save(reconciliationInvoiceCreateCmd);
|
||||
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceDestroyCmdExe {
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
|
||||
public void execute(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
|
||||
reconciliationInvoiceGateway.destroy(reconciliationInvoiceDestroyCmd);
|
||||
}
|
||||
public void execute(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
|
||||
reconciliationInvoiceGateway.destroy(reconciliationInvoiceDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceUpdateCmdExe {
|
||||
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.update(reconciliationInvoiceUpdateCmd);
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.update(reconciliationInvoiceUpdateCmd);
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentCreateCmdExe {
|
||||
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.save(reconciliationPaymentCreateCmd);
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.save(reconciliationPaymentCreateCmd);
|
||||
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentDestroyCmdExe {
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
|
||||
public void execute(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
|
||||
reconciliationPaymentGateway.destroy(reconciliationPaymentDestroyCmd);
|
||||
}
|
||||
public void execute(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
|
||||
reconciliationPaymentGateway.destroy(reconciliationPaymentDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentUpdateCmdExe {
|
||||
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.update(reconciliationPaymentUpdateCmd);
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.update(reconciliationPaymentUpdateCmd);
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationUpdateCmdExe {
|
||||
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
|
||||
public ReconciliationVO execute(ReconciliationUpdateCmd reconciliationUpdateCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.update(reconciliationUpdateCmd);
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
public ReconciliationVO execute(ReconciliationUpdateCmd reconciliationUpdateCmd) {
|
||||
Reconciliation reconciliation = reconciliationGateway.update(reconciliationUpdateCmd);
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class SupplierInvoiceDestroyCmdExe {
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
|
||||
public void execute(SupplierInvoiceDestroyCmd supplierInvoiceDestroyCmd) {
|
||||
supplierInvoiceGateway.destroy(supplierInvoiceDestroyCmd);
|
||||
}
|
||||
public void execute(SupplierInvoiceDestroyCmd supplierInvoiceDestroyCmd) {
|
||||
supplierInvoiceGateway.destroy(supplierInvoiceDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class SupplierInvoiceUpdateCmdExe {
|
||||
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
|
||||
public SupplierInvoiceVO execute(SupplierInvoiceUpdateCmd invoiceUpdateCmd) {
|
||||
SupplierInvoice supplierInvoice = supplierInvoiceGateway.update(invoiceUpdateCmd);
|
||||
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
|
||||
}
|
||||
public SupplierInvoiceVO execute(SupplierInvoiceUpdateCmd invoiceUpdateCmd) {
|
||||
SupplierInvoice supplierInvoice = supplierInvoiceGateway.update(invoiceUpdateCmd);
|
||||
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class AuditPageQryExe {
|
||||
|
||||
private final AuditGateway auditGateway;
|
||||
private final AuditAssembler auditAssembler;
|
||||
private final AuditGateway auditGateway;
|
||||
private final AuditAssembler auditAssembler;
|
||||
|
||||
public IPage<AuditVO> execute(AuditPageQry auditPageQry) {
|
||||
IPage<Audit> page = auditGateway.page(auditPageQry);
|
||||
return page.convert(auditAssembler::toAuditVO);
|
||||
}
|
||||
public IPage<AuditVO> execute(AuditPageQry auditPageQry) {
|
||||
IPage<Audit> page = auditGateway.page(auditPageQry);
|
||||
return page.convert(auditAssembler::toAuditVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class AuditShowQryExe {
|
||||
|
||||
private final AuditAssembler auditAssembler;
|
||||
private final AuditGateway auditGateway;
|
||||
private final AuditAssembler auditAssembler;
|
||||
private final AuditGateway auditGateway;
|
||||
|
||||
public AuditVO execute(AuditShowQry auditShowQry) {
|
||||
Audit audit = auditGateway.show(auditShowQry);
|
||||
public AuditVO execute(AuditShowQry auditShowQry) {
|
||||
Audit audit = auditGateway.show(auditShowQry);
|
||||
|
||||
return auditAssembler.toAuditVO(audit);
|
||||
}
|
||||
return auditAssembler.toAuditVO(audit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecListQryExe {
|
||||
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
|
||||
public List<BoxSpecVO> execute(BoxSpecListQry boxSpecListQry) {
|
||||
List<BoxSpec> boxSpecList = boxSpecGateway.list(boxSpecListQry);
|
||||
return boxSpecList.stream().map(boxSpecAssembler::toBoxSpecVO).toList();
|
||||
}
|
||||
public List<BoxSpecVO> execute(BoxSpecListQry boxSpecListQry) {
|
||||
List<BoxSpec> boxSpecList = boxSpecGateway.list(boxSpecListQry);
|
||||
return boxSpecList.stream().map(boxSpecAssembler::toBoxSpecVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecPageQryExe {
|
||||
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
|
||||
public IPage<BoxSpecVO> execute(BoxSpecPageQry boxSpecPageQry) {
|
||||
IPage<BoxSpec> page = boxSpecGateway.page(boxSpecPageQry);
|
||||
return page.convert(boxSpecAssembler::toBoxSpecVO);
|
||||
}
|
||||
public IPage<BoxSpecVO> execute(BoxSpecPageQry boxSpecPageQry) {
|
||||
IPage<BoxSpec> page = boxSpecGateway.page(boxSpecPageQry);
|
||||
return page.convert(boxSpecAssembler::toBoxSpecVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecShowQryExe {
|
||||
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
private final BoxSpecAssembler boxSpecAssembler;
|
||||
private final BoxSpecGateway boxSpecGateway;
|
||||
|
||||
public BoxSpecVO execute(BoxSpecShowQry boxSpecShowQry) {
|
||||
BoxSpec boxSpec = boxSpecGateway.show(boxSpecShowQry);
|
||||
public BoxSpecVO execute(BoxSpecShowQry boxSpecShowQry) {
|
||||
BoxSpec boxSpec = boxSpecGateway.show(boxSpecShowQry);
|
||||
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
return boxSpecAssembler.toBoxSpecVO(boxSpec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class CostListQryExe {
|
||||
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
|
||||
public List<CostVO> execute(CostListQry costListQry) {
|
||||
List<Cost> costList = costGateway.list(costListQry);
|
||||
return costList.stream().map(costAssembler::toCostVO).toList();
|
||||
}
|
||||
public List<CostVO> execute(CostListQry costListQry) {
|
||||
List<Cost> costList = costGateway.list(costListQry);
|
||||
return costList.stream().map(costAssembler::toCostVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class CostPageQryExe {
|
||||
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
|
||||
public IPage<CostVO> execute(CostPageQry costPageQry) {
|
||||
IPage<Cost> page = costGateway.page(costPageQry);
|
||||
return page.convert(costAssembler::toCostVO);
|
||||
}
|
||||
public IPage<CostVO> execute(CostPageQry costPageQry) {
|
||||
IPage<Cost> page = costGateway.page(costPageQry);
|
||||
return page.convert(costAssembler::toCostVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class CostShowQryExe {
|
||||
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
private final CostAssembler costAssembler;
|
||||
private final CostGateway costGateway;
|
||||
|
||||
public CostVO execute(CostShowQry costShowQry) {
|
||||
Cost cost = costGateway.show(costShowQry);
|
||||
public CostVO execute(CostShowQry costShowQry) {
|
||||
Cost cost = costGateway.show(costShowQry);
|
||||
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
return costAssembler.toCostVO(cost);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordListQryExe {
|
||||
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
|
||||
public List<DealerAccountRecordVO> execute(DealerAccountRecordListQry dealerAccountRecordListQry) {
|
||||
List<DealerAccountRecord> dealerAccountRecordList = dealerAccountRecordGateway.list(dealerAccountRecordListQry);
|
||||
return dealerAccountRecordList.stream().map(dealerAccountRecordAssembler::toDealerAccountRecordVO).toList();
|
||||
}
|
||||
public List<DealerAccountRecordVO> execute(DealerAccountRecordListQry dealerAccountRecordListQry) {
|
||||
List<DealerAccountRecord> dealerAccountRecordList = dealerAccountRecordGateway.list(dealerAccountRecordListQry);
|
||||
return dealerAccountRecordList.stream().map(dealerAccountRecordAssembler::toDealerAccountRecordVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordPageQryExe {
|
||||
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
|
||||
public IPage<DealerAccountRecordVO> execute(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
|
||||
IPage<DealerAccountRecord> page = dealerAccountRecordGateway.page(dealerAccountRecordPageQry);
|
||||
return page.convert(dealerAccountRecordAssembler::toDealerAccountRecordVO);
|
||||
}
|
||||
public IPage<DealerAccountRecordVO> execute(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
|
||||
IPage<DealerAccountRecord> page = dealerAccountRecordGateway.page(dealerAccountRecordPageQry);
|
||||
return page.convert(dealerAccountRecordAssembler::toDealerAccountRecordVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordShowQryExe {
|
||||
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
|
||||
private final DealerAccountRecordGateway dealerAccountRecordGateway;
|
||||
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.show(dealerAccountRecordShowQry);
|
||||
public DealerAccountRecordVO execute(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
|
||||
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.show(dealerAccountRecordShowQry);
|
||||
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ExpenseRecordListQryExe {
|
||||
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
|
||||
public List<ExpenseRecordVO> execute(ExpenseRecordListQry expenseRecordListQry) {
|
||||
List<ExpenseRecord> expenseRecordList = expenseRecordGateway.list(expenseRecordListQry);
|
||||
return expenseRecordList.stream().map(expenseRecordAssembler::toExpenseRecordVO).toList();
|
||||
}
|
||||
public List<ExpenseRecordVO> execute(ExpenseRecordListQry expenseRecordListQry) {
|
||||
List<ExpenseRecord> expenseRecordList = expenseRecordGateway.list(expenseRecordListQry);
|
||||
return expenseRecordList.stream().map(expenseRecordAssembler::toExpenseRecordVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ExpenseRecordShowQryExe {
|
||||
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
private final ExpenseRecordAssembler expenseRecordAssembler;
|
||||
private final ExpenseRecordGateway expenseRecordGateway;
|
||||
|
||||
public ExpenseRecordVO execute(ExpenseRecordShowQry expenseRecordShowQry) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.show(expenseRecordShowQry);
|
||||
public ExpenseRecordVO execute(ExpenseRecordShowQry expenseRecordShowQry) {
|
||||
ExpenseRecord expenseRecord = expenseRecordGateway.show(expenseRecordShowQry);
|
||||
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -14,9 +14,9 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class LastVehicleNoQryExe {
|
||||
|
||||
private final OrderGateway orderGateway;
|
||||
private final OrderGateway orderGateway;
|
||||
|
||||
public String execute(LastVehicleNoQry lastVehicleNoQry) {
|
||||
return orderGateway.getLastVehicleNo(lastVehicleNoQry);
|
||||
}
|
||||
public String execute(LastVehicleNoQry lastVehicleNoQry) {
|
||||
return orderGateway.getLastVehicleNo(lastVehicleNoQry);
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class OrderCostPageQryExe {
|
||||
|
||||
private final OrderCostGateway orderCostGateway;
|
||||
private final OrderCostAssembler orderCostAssembler;
|
||||
private final OrderCostGateway orderCostGateway;
|
||||
private final OrderCostAssembler orderCostAssembler;
|
||||
|
||||
public IPage<OrderCostVO> execute(OrderCostPageQry orderCostPageQry) {
|
||||
IPage<OrderCost> page = orderCostGateway.page(orderCostPageQry);
|
||||
return page.convert(orderCostAssembler::toOrderCostVO);
|
||||
}
|
||||
public IPage<OrderCostVO> execute(OrderCostPageQry orderCostPageQry) {
|
||||
IPage<OrderCost> page = orderCostGateway.page(orderCostPageQry);
|
||||
return page.convert(orderCostAssembler::toOrderCostVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class OrderRebatePageQryExe {
|
||||
|
||||
private final OrderRebateGateway orderRebateGateway;
|
||||
private final OrderRebateAssembler orderRebateAssembler;
|
||||
private final OrderRebateGateway orderRebateGateway;
|
||||
private final OrderRebateAssembler orderRebateAssembler;
|
||||
|
||||
public IPage<OrderRebateVO> execute(OrderRebatePageQry orderRebatePageQry) {
|
||||
IPage<OrderRebate> page = orderRebateGateway.page(orderRebatePageQry);
|
||||
return page.convert(orderRebateAssembler::toOrderRebateVO);
|
||||
}
|
||||
public IPage<OrderRebateVO> execute(OrderRebatePageQry orderRebatePageQry) {
|
||||
IPage<OrderRebate> page = orderRebateGateway.page(orderRebatePageQry);
|
||||
return page.convert(orderRebateAssembler::toOrderRebateVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class OrderSupplierPageQryExe {
|
||||
|
||||
private final OrderSupplierGateway orderSupplierGateway;
|
||||
private final OrderSupplierAssembler orderSupplierAssembler;
|
||||
private final OrderSupplierGateway orderSupplierGateway;
|
||||
private final OrderSupplierAssembler orderSupplierAssembler;
|
||||
|
||||
public IPage<OrderSupplierVO> execute(OrderSupplierPageQry orderSupplierPageQry) {
|
||||
IPage<OrderSupplier> page = orderSupplierGateway.page(orderSupplierPageQry);
|
||||
return page.convert(orderSupplierAssembler::toOrderSupplierVO);
|
||||
}
|
||||
public IPage<OrderSupplierVO> execute(OrderSupplierPageQry orderSupplierPageQry) {
|
||||
IPage<OrderSupplier> page = orderSupplierGateway.page(orderSupplierPageQry);
|
||||
return page.convert(orderSupplierAssembler::toOrderSupplierVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordListQryExe {
|
||||
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
|
||||
public List<PaymentRecordVO> execute(PaymentRecordListQry paymentRecordListQry) {
|
||||
List<PaymentRecord> paymentRecordList = paymentRecordGateway.list(paymentRecordListQry);
|
||||
return paymentRecordList.stream().map(paymentRecordAssembler::toPaymentRecordVO).toList();
|
||||
}
|
||||
public List<PaymentRecordVO> execute(PaymentRecordListQry paymentRecordListQry) {
|
||||
List<PaymentRecord> paymentRecordList = paymentRecordGateway.list(paymentRecordListQry);
|
||||
return paymentRecordList.stream().map(paymentRecordAssembler::toPaymentRecordVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordPageQryExe {
|
||||
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
|
||||
public IPage<PaymentRecordVO> execute(PaymentRecordPageQry paymentRecordPageQry) {
|
||||
IPage<PaymentRecord> page = paymentRecordGateway.page(paymentRecordPageQry);
|
||||
return page.convert(paymentRecordAssembler::toPaymentRecordVO);
|
||||
}
|
||||
public IPage<PaymentRecordVO> execute(PaymentRecordPageQry paymentRecordPageQry) {
|
||||
IPage<PaymentRecord> page = paymentRecordGateway.page(paymentRecordPageQry);
|
||||
return page.convert(paymentRecordAssembler::toPaymentRecordVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordShowQryExe {
|
||||
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
private final PaymentRecordAssembler paymentRecordAssembler;
|
||||
private final PaymentRecordGateway paymentRecordGateway;
|
||||
|
||||
public PaymentRecordVO execute(PaymentRecordShowQry paymentRecordShowQry) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.show(paymentRecordShowQry);
|
||||
public PaymentRecordVO execute(PaymentRecordShowQry paymentRecordShowQry) {
|
||||
PaymentRecord paymentRecord = paymentRecordGateway.show(paymentRecordShowQry);
|
||||
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskListQryExe {
|
||||
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
|
||||
public List<PaymentTaskVO> execute(PaymentTaskListQry paymentTaskListQry) {
|
||||
List<PaymentTask> paymentTaskList = paymentTaskGateway.list(paymentTaskListQry);
|
||||
return paymentTaskList.stream().map(paymentTaskAssembler::toPaymentTaskVO).toList();
|
||||
}
|
||||
public List<PaymentTaskVO> execute(PaymentTaskListQry paymentTaskListQry) {
|
||||
List<PaymentTask> paymentTaskList = paymentTaskGateway.list(paymentTaskListQry);
|
||||
return paymentTaskList.stream().map(paymentTaskAssembler::toPaymentTaskVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskPageQryExe {
|
||||
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
|
||||
public IPage<PaymentTaskVO> execute(PaymentTaskPageQry paymentTaskPageQry) {
|
||||
IPage<PaymentTask> page = paymentTaskGateway.page(paymentTaskPageQry);
|
||||
return page.convert(paymentTaskAssembler::toPaymentTaskVO);
|
||||
}
|
||||
public IPage<PaymentTaskVO> execute(PaymentTaskPageQry paymentTaskPageQry) {
|
||||
IPage<PaymentTask> page = paymentTaskGateway.page(paymentTaskPageQry);
|
||||
return page.convert(paymentTaskAssembler::toPaymentTaskVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskShowQryExe {
|
||||
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskAssembler paymentTaskAssembler;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
|
||||
public PaymentTaskVO execute(PaymentTaskShowQry paymentTaskShowQry) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.show(paymentTaskShowQry);
|
||||
public PaymentTaskVO execute(PaymentTaskShowQry paymentTaskShowQry) {
|
||||
PaymentTask paymentTask = paymentTaskGateway.show(paymentTaskShowQry);
|
||||
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -15,9 +15,9 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskStatisticsQryExe {
|
||||
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
private final PaymentTaskGateway paymentTaskGateway;
|
||||
|
||||
public PaymentTaskStatisticsVO execute(PaymentTaskStatisticsQry statisticsQry) {
|
||||
return paymentTaskGateway.statistics(statisticsQry);
|
||||
}
|
||||
public PaymentTaskStatisticsVO execute(PaymentTaskStatisticsQry statisticsQry) {
|
||||
return paymentTaskGateway.statistics(statisticsQry);
|
||||
}
|
||||
}
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductListQryExe {
|
||||
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
|
||||
public List<ProductVO> execute(ProductListQry productListQry) {
|
||||
List<Product> productList = productGateway.list(productListQry);
|
||||
return productList.stream().map(productAssembler::toProductVO).toList();
|
||||
}
|
||||
public List<ProductVO> execute(ProductListQry productListQry) {
|
||||
List<Product> productList = productGateway.list(productListQry);
|
||||
return productList.stream().map(productAssembler::toProductVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductPageQryExe {
|
||||
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
|
||||
public IPage<ProductVO> execute(ProductPageQry productPageQry) {
|
||||
IPage<Product> page = productGateway.page(productPageQry);
|
||||
return page.convert(productAssembler::toProductVO);
|
||||
}
|
||||
public IPage<ProductVO> execute(ProductPageQry productPageQry) {
|
||||
IPage<Product> page = productGateway.page(productPageQry);
|
||||
return page.convert(productAssembler::toProductVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductShowQryExe {
|
||||
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
private final ProductAssembler productAssembler;
|
||||
private final ProductGateway productGateway;
|
||||
|
||||
public ProductVO execute(ProductShowQry productShowQry) {
|
||||
Product product = productGateway.show(productShowQry);
|
||||
public ProductVO execute(ProductShowQry productShowQry) {
|
||||
Product product = productGateway.show(productShowQry);
|
||||
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
return productAssembler.toProductVO(product);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceListQryExe {
|
||||
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
|
||||
public List<ReconciliationInvoiceVO> execute(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
|
||||
List<ReconciliationInvoice> reconciliationInvoiceList = reconciliationInvoiceGateway.list(reconciliationInvoiceListQry);
|
||||
return reconciliationInvoiceList.stream().map(reconciliationInvoiceAssembler::toReconciliationInvoiceVO).toList();
|
||||
}
|
||||
public List<ReconciliationInvoiceVO> execute(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
|
||||
List<ReconciliationInvoice> reconciliationInvoiceList = reconciliationInvoiceGateway.list(reconciliationInvoiceListQry);
|
||||
return reconciliationInvoiceList.stream().map(reconciliationInvoiceAssembler::toReconciliationInvoiceVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoicePageQryExe {
|
||||
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
|
||||
public IPage<ReconciliationInvoiceVO> execute(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
|
||||
IPage<ReconciliationInvoice> page = reconciliationInvoiceGateway.page(reconciliationInvoicePageQry);
|
||||
return page.convert(reconciliationInvoiceAssembler::toReconciliationInvoiceVO);
|
||||
}
|
||||
public IPage<ReconciliationInvoiceVO> execute(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
|
||||
IPage<ReconciliationInvoice> page = reconciliationInvoiceGateway.page(reconciliationInvoicePageQry);
|
||||
return page.convert(reconciliationInvoiceAssembler::toReconciliationInvoiceVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceShowQryExe {
|
||||
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
|
||||
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
|
||||
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.show(reconciliationInvoiceShowQry);
|
||||
public ReconciliationInvoiceVO execute(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
|
||||
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.show(reconciliationInvoiceShowQry);
|
||||
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationListQryExe {
|
||||
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
|
||||
public List<ReconciliationVO> execute(ReconciliationListQry reconciliationListQry) {
|
||||
List<Reconciliation> reconciliationList = reconciliationGateway.list(reconciliationListQry);
|
||||
return reconciliationList.stream().map(reconciliationAssembler::toReconciliationVO).toList();
|
||||
}
|
||||
public List<ReconciliationVO> execute(ReconciliationListQry reconciliationListQry) {
|
||||
List<Reconciliation> reconciliationList = reconciliationGateway.list(reconciliationListQry);
|
||||
return reconciliationList.stream().map(reconciliationAssembler::toReconciliationVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPageQryExe {
|
||||
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
|
||||
public IPage<ReconciliationVO> execute(ReconciliationPageQry reconciliationPageQry) {
|
||||
IPage<Reconciliation> page = reconciliationGateway.page(reconciliationPageQry);
|
||||
return page.convert(reconciliationAssembler::toReconciliationVO);
|
||||
}
|
||||
public IPage<ReconciliationVO> execute(ReconciliationPageQry reconciliationPageQry) {
|
||||
IPage<Reconciliation> page = reconciliationGateway.page(reconciliationPageQry);
|
||||
return page.convert(reconciliationAssembler::toReconciliationVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentListQryExe {
|
||||
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
|
||||
public List<ReconciliationPaymentVO> execute(ReconciliationPaymentListQry reconciliationPaymentListQry) {
|
||||
List<ReconciliationPayment> reconciliationPaymentList = reconciliationPaymentGateway.list(reconciliationPaymentListQry);
|
||||
return reconciliationPaymentList.stream().map(reconciliationPaymentAssembler::toReconciliationPaymentVO).toList();
|
||||
}
|
||||
public List<ReconciliationPaymentVO> execute(ReconciliationPaymentListQry reconciliationPaymentListQry) {
|
||||
List<ReconciliationPayment> reconciliationPaymentList = reconciliationPaymentGateway.list(reconciliationPaymentListQry);
|
||||
return reconciliationPaymentList.stream().map(reconciliationPaymentAssembler::toReconciliationPaymentVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentPageQryExe {
|
||||
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
|
||||
public IPage<ReconciliationPaymentVO> execute(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
|
||||
IPage<ReconciliationPayment> page = reconciliationPaymentGateway.page(reconciliationPaymentPageQry);
|
||||
return page.convert(reconciliationPaymentAssembler::toReconciliationPaymentVO);
|
||||
}
|
||||
public IPage<ReconciliationPaymentVO> execute(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
|
||||
IPage<ReconciliationPayment> page = reconciliationPaymentGateway.page(reconciliationPaymentPageQry);
|
||||
return page.convert(reconciliationPaymentAssembler::toReconciliationPaymentVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentShowQryExe {
|
||||
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
|
||||
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
|
||||
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.show(reconciliationPaymentShowQry);
|
||||
public ReconciliationPaymentVO execute(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
|
||||
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.show(reconciliationPaymentShowQry);
|
||||
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationShowQryExe {
|
||||
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
private final ReconciliationAssembler reconciliationAssembler;
|
||||
private final ReconciliationGateway reconciliationGateway;
|
||||
|
||||
public ReconciliationVO execute(ReconciliationShowQry reconciliationShowQry) {
|
||||
Reconciliation reconciliation = reconciliationGateway.show(reconciliationShowQry);
|
||||
public ReconciliationVO execute(ReconciliationShowQry reconciliationShowQry) {
|
||||
Reconciliation reconciliation = reconciliationGateway.show(reconciliationShowQry);
|
||||
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
return reconciliationAssembler.toReconciliationVO(reconciliation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class SupplierInvoiceListQryExe {
|
||||
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
|
||||
public List<SupplierInvoiceVO> execute(SupplierInvoiceListQry supplierInvoiceListQry) {
|
||||
List<SupplierInvoice> supplierInvoiceList = supplierInvoiceGateway.list(supplierInvoiceListQry);
|
||||
return supplierInvoiceList.stream().map(supplierInvoiceAssembler::toInvoiceVO).toList();
|
||||
}
|
||||
public List<SupplierInvoiceVO> execute(SupplierInvoiceListQry supplierInvoiceListQry) {
|
||||
List<SupplierInvoice> supplierInvoiceList = supplierInvoiceGateway.list(supplierInvoiceListQry);
|
||||
return supplierInvoiceList.stream().map(supplierInvoiceAssembler::toInvoiceVO).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class SupplierInvoicePageQryExe {
|
||||
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
|
||||
public IPage<SupplierInvoiceVO> execute(SupplierInvoicePageQry supplierInvoicePageQry) {
|
||||
IPage<SupplierInvoice> page = supplierInvoiceGateway.page(supplierInvoicePageQry);
|
||||
return page.convert(supplierInvoiceAssembler::toInvoiceVO);
|
||||
}
|
||||
public IPage<SupplierInvoiceVO> execute(SupplierInvoicePageQry supplierInvoicePageQry) {
|
||||
IPage<SupplierInvoice> page = supplierInvoiceGateway.page(supplierInvoicePageQry);
|
||||
return page.convert(supplierInvoiceAssembler::toInvoiceVO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
|
||||
@RequiredArgsConstructor
|
||||
public class SupplierInvoiceShowQryExe {
|
||||
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
private final SupplierInvoiceAssembler supplierInvoiceAssembler;
|
||||
private final SupplierInvoiceGateway supplierInvoiceGateway;
|
||||
|
||||
public SupplierInvoiceVO execute(SupplierInvoiceShowQry supplierInvoiceShowQry) {
|
||||
SupplierInvoice supplierInvoice = supplierInvoiceGateway.show(supplierInvoiceShowQry);
|
||||
public SupplierInvoiceVO execute(SupplierInvoiceShowQry supplierInvoiceShowQry) {
|
||||
SupplierInvoice supplierInvoice = supplierInvoiceGateway.show(supplierInvoiceShowQry);
|
||||
|
||||
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
|
||||
}
|
||||
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -23,23 +23,23 @@ import org.springframework.stereotype.Service;
|
||||
@RequiredArgsConstructor
|
||||
public class AuditServiceImpl implements AuditServiceI {
|
||||
|
||||
private final AuditUpdateCmdExe auditUpdateCmdExe;
|
||||
private final AuditPageQryExe auditPageQryExe;
|
||||
private final AuditShowQryExe auditShowQryExe;
|
||||
private final AuditUpdateCmdExe auditUpdateCmdExe;
|
||||
private final AuditPageQryExe auditPageQryExe;
|
||||
private final AuditShowQryExe auditShowQryExe;
|
||||
|
||||
@Override
|
||||
public PageDTO<AuditVO> page(AuditPageQry auditPageQry) {
|
||||
return PageDTO.of(auditPageQryExe.execute(auditPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<AuditVO> page(AuditPageQry auditPageQry) {
|
||||
return PageDTO.of(auditPageQryExe.execute(auditPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public AuditVO update(AuditUpdateCmd auditUpdateCmd) {
|
||||
return auditUpdateCmdExe.execute(auditUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public AuditVO update(AuditUpdateCmd auditUpdateCmd) {
|
||||
return auditUpdateCmdExe.execute(auditUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AuditVO show(AuditShowQry auditShowQry) {
|
||||
return auditShowQryExe.execute(auditShowQry);
|
||||
}
|
||||
@Override
|
||||
public AuditVO show(AuditShowQry auditShowQry) {
|
||||
return auditShowQryExe.execute(auditShowQry);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,41 +31,41 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class BoxSpecServiceImpl implements BoxSpecServiceI {
|
||||
|
||||
private final BoxSpecCreateCmdExe boxSpecCreateCmdExe;
|
||||
private final BoxSpecUpdateCmdExe boxSpecUpdateCmdExe;
|
||||
private final BoxSpecPageQryExe boxSpecPageQryExe;
|
||||
private final BoxSpecListQryExe boxSpecListQryExe;
|
||||
private final BoxSpecShowQryExe boxSpecShowQryExe;
|
||||
private final BoxSpecDestroyCmdExe boxSpecDestroyCmdExe;
|
||||
private final BoxSpecCreateCmdExe boxSpecCreateCmdExe;
|
||||
private final BoxSpecUpdateCmdExe boxSpecUpdateCmdExe;
|
||||
private final BoxSpecPageQryExe boxSpecPageQryExe;
|
||||
private final BoxSpecListQryExe boxSpecListQryExe;
|
||||
private final BoxSpecShowQryExe boxSpecShowQryExe;
|
||||
private final BoxSpecDestroyCmdExe boxSpecDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public BoxSpecVO create(BoxSpecCreateCmd boxSpecCreateCmd) {
|
||||
return boxSpecCreateCmdExe.execute(boxSpecCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public BoxSpecVO create(BoxSpecCreateCmd boxSpecCreateCmd) {
|
||||
return boxSpecCreateCmdExe.execute(boxSpecCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<BoxSpecVO> page(BoxSpecPageQry boxSpecPageQry) {
|
||||
return PageDTO.of(boxSpecPageQryExe.execute(boxSpecPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<BoxSpecVO> page(BoxSpecPageQry boxSpecPageQry) {
|
||||
return PageDTO.of(boxSpecPageQryExe.execute(boxSpecPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BoxSpecVO> list(BoxSpecListQry boxSpecListQry) {
|
||||
return boxSpecListQryExe.execute(boxSpecListQry);
|
||||
}
|
||||
@Override
|
||||
public List<BoxSpecVO> list(BoxSpecListQry boxSpecListQry) {
|
||||
return boxSpecListQryExe.execute(boxSpecListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoxSpecVO update(BoxSpecUpdateCmd boxSpecUpdateCmd) {
|
||||
return boxSpecUpdateCmdExe.execute(boxSpecUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public BoxSpecVO update(BoxSpecUpdateCmd boxSpecUpdateCmd) {
|
||||
return boxSpecUpdateCmdExe.execute(boxSpecUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoxSpecVO show(BoxSpecShowQry boxSpecShowQry) {
|
||||
return boxSpecShowQryExe.execute(boxSpecShowQry);
|
||||
}
|
||||
@Override
|
||||
public BoxSpecVO show(BoxSpecShowQry boxSpecShowQry) {
|
||||
return boxSpecShowQryExe.execute(boxSpecShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(BoxSpecDestroyCmd boxSpecDestroyCmd) {
|
||||
boxSpecDestroyCmdExe.execute(boxSpecDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(BoxSpecDestroyCmd boxSpecDestroyCmd) {
|
||||
boxSpecDestroyCmdExe.execute(boxSpecDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -33,43 +33,43 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class CostServiceImpl implements CostServiceI {
|
||||
|
||||
private final CostCreateCmdExe costCreateCmdExe;
|
||||
private final CostUpdateCmdExe costUpdateCmdExe;
|
||||
private final CostPageQryExe costPageQryExe;
|
||||
private final CostListQryExe costListQryExe;
|
||||
private final CostShowQryExe costShowQryExe;
|
||||
private final CostDestroyCmdExe costDestroyCmdExe;
|
||||
private final CostCreateCmdExe costCreateCmdExe;
|
||||
private final CostUpdateCmdExe costUpdateCmdExe;
|
||||
private final CostPageQryExe costPageQryExe;
|
||||
private final CostListQryExe costListQryExe;
|
||||
private final CostShowQryExe costShowQryExe;
|
||||
private final CostDestroyCmdExe costDestroyCmdExe;
|
||||
private final CostDragCmdExe costDragCmdExe;
|
||||
|
||||
@Override
|
||||
public CostVO create(CostCreateCmd costCreateCmd) {
|
||||
return costCreateCmdExe.execute(costCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public CostVO create(CostCreateCmd costCreateCmd) {
|
||||
return costCreateCmdExe.execute(costCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<CostVO> page(CostPageQry costPageQry) {
|
||||
return PageDTO.of(costPageQryExe.execute(costPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<CostVO> page(CostPageQry costPageQry) {
|
||||
return PageDTO.of(costPageQryExe.execute(costPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CostVO> list(CostListQry costListQry) {
|
||||
return costListQryExe.execute(costListQry);
|
||||
}
|
||||
@Override
|
||||
public List<CostVO> list(CostListQry costListQry) {
|
||||
return costListQryExe.execute(costListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CostVO update(CostUpdateCmd costUpdateCmd) {
|
||||
return costUpdateCmdExe.execute(costUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public CostVO update(CostUpdateCmd costUpdateCmd) {
|
||||
return costUpdateCmdExe.execute(costUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CostVO show(CostShowQry costShowQry) {
|
||||
return costShowQryExe.execute(costShowQry);
|
||||
}
|
||||
@Override
|
||||
public CostVO show(CostShowQry costShowQry) {
|
||||
return costShowQryExe.execute(costShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(CostDestroyCmd costDestroyCmd) {
|
||||
costDestroyCmdExe.execute(costDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(CostDestroyCmd costDestroyCmd) {
|
||||
costDestroyCmdExe.execute(costDestroyCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drag(CostDragCmd costDragCmd) {
|
||||
|
||||
@ -31,41 +31,41 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class DealerAccountRecordServiceImpl implements DealerAccountRecordServiceI {
|
||||
|
||||
private final DealerAccountRecordCreateCmdExe dealerAccountRecordCreateCmdExe;
|
||||
private final DealerAccountRecordUpdateCmdExe dealerAccountRecordUpdateCmdExe;
|
||||
private final DealerAccountRecordPageQryExe dealerAccountRecordPageQryExe;
|
||||
private final DealerAccountRecordListQryExe dealerAccountRecordListQryExe;
|
||||
private final DealerAccountRecordShowQryExe dealerAccountRecordShowQryExe;
|
||||
private final DealerAccountRecordDestroyCmdExe dealerAccountRecordDestroyCmdExe;
|
||||
private final DealerAccountRecordCreateCmdExe dealerAccountRecordCreateCmdExe;
|
||||
private final DealerAccountRecordUpdateCmdExe dealerAccountRecordUpdateCmdExe;
|
||||
private final DealerAccountRecordPageQryExe dealerAccountRecordPageQryExe;
|
||||
private final DealerAccountRecordListQryExe dealerAccountRecordListQryExe;
|
||||
private final DealerAccountRecordShowQryExe dealerAccountRecordShowQryExe;
|
||||
private final DealerAccountRecordDestroyCmdExe dealerAccountRecordDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public DealerAccountRecordVO create(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
|
||||
return dealerAccountRecordCreateCmdExe.execute(dealerAccountRecordCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public DealerAccountRecordVO create(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
|
||||
return dealerAccountRecordCreateCmdExe.execute(dealerAccountRecordCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<DealerAccountRecordVO> page(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
|
||||
return PageDTO.of(dealerAccountRecordPageQryExe.execute(dealerAccountRecordPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<DealerAccountRecordVO> page(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
|
||||
return PageDTO.of(dealerAccountRecordPageQryExe.execute(dealerAccountRecordPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DealerAccountRecordVO> list(DealerAccountRecordListQry dealerAccountRecordListQry) {
|
||||
return dealerAccountRecordListQryExe.execute(dealerAccountRecordListQry);
|
||||
}
|
||||
@Override
|
||||
public List<DealerAccountRecordVO> list(DealerAccountRecordListQry dealerAccountRecordListQry) {
|
||||
return dealerAccountRecordListQryExe.execute(dealerAccountRecordListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DealerAccountRecordVO update(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
|
||||
return dealerAccountRecordUpdateCmdExe.execute(dealerAccountRecordUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public DealerAccountRecordVO update(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
|
||||
return dealerAccountRecordUpdateCmdExe.execute(dealerAccountRecordUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DealerAccountRecordVO show(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
|
||||
return dealerAccountRecordShowQryExe.execute(dealerAccountRecordShowQry);
|
||||
}
|
||||
@Override
|
||||
public DealerAccountRecordVO show(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
|
||||
return dealerAccountRecordShowQryExe.execute(dealerAccountRecordShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
|
||||
dealerAccountRecordDestroyCmdExe.execute(dealerAccountRecordDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
|
||||
dealerAccountRecordDestroyCmdExe.execute(dealerAccountRecordDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -26,29 +26,29 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ExpenseRecordServiceImpl implements ExpenseRecordServiceI {
|
||||
|
||||
private final ExpenseRecordCreateCmdExe expenseRecordCreateCmdExe;
|
||||
private final ExpenseRecordUpdateCmdExe expenseRecordUpdateCmdExe;
|
||||
private final ExpenseRecordListQryExe expenseRecordListQryExe;
|
||||
private final ExpenseRecordShowQryExe expenseRecordShowQryExe;
|
||||
private final ExpenseRecordCreateCmdExe expenseRecordCreateCmdExe;
|
||||
private final ExpenseRecordUpdateCmdExe expenseRecordUpdateCmdExe;
|
||||
private final ExpenseRecordListQryExe expenseRecordListQryExe;
|
||||
private final ExpenseRecordShowQryExe expenseRecordShowQryExe;
|
||||
|
||||
@Override
|
||||
public ExpenseRecordVO create(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
|
||||
return expenseRecordCreateCmdExe.execute(expenseRecordCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public ExpenseRecordVO create(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
|
||||
return expenseRecordCreateCmdExe.execute(expenseRecordCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ExpenseRecordVO> list(ExpenseRecordListQry expenseRecordListQry) {
|
||||
return expenseRecordListQryExe.execute(expenseRecordListQry);
|
||||
}
|
||||
@Override
|
||||
public List<ExpenseRecordVO> list(ExpenseRecordListQry expenseRecordListQry) {
|
||||
return expenseRecordListQryExe.execute(expenseRecordListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpenseRecordVO update(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
|
||||
return expenseRecordUpdateCmdExe.execute(expenseRecordUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public ExpenseRecordVO update(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
|
||||
return expenseRecordUpdateCmdExe.execute(expenseRecordUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpenseRecordVO show(ExpenseRecordShowQry expenseRecordShowQry) {
|
||||
return expenseRecordShowQryExe.execute(expenseRecordShowQry);
|
||||
}
|
||||
@Override
|
||||
public ExpenseRecordVO show(ExpenseRecordShowQry expenseRecordShowQry) {
|
||||
return expenseRecordShowQryExe.execute(expenseRecordShowQry);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -21,19 +21,19 @@ import org.springframework.stereotype.Service;
|
||||
@RequiredArgsConstructor
|
||||
public class OrderSupplierServiceImpl implements OrderSupplierServiceI {
|
||||
|
||||
private final OrderSupplierUpdateCmdExe orderSupplierUpdateCmdExe;
|
||||
private final OrderSupplierPageQryExe orderSupplierPageQryExe;
|
||||
private final OrderSupplierUpdateCmdExe orderSupplierUpdateCmdExe;
|
||||
private final OrderSupplierPageQryExe orderSupplierPageQryExe;
|
||||
|
||||
|
||||
@Override
|
||||
public PageDTO<OrderSupplierVO> page(OrderSupplierPageQry orderSupplierPageQry) {
|
||||
return PageDTO.of(orderSupplierPageQryExe.execute(orderSupplierPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<OrderSupplierVO> page(OrderSupplierPageQry orderSupplierPageQry) {
|
||||
return PageDTO.of(orderSupplierPageQryExe.execute(orderSupplierPageQry));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public OrderSupplierVO update(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
|
||||
return orderSupplierUpdateCmdExe.execute(orderSupplierUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public OrderSupplierVO update(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
|
||||
return orderSupplierUpdateCmdExe.execute(orderSupplierUpdateCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,41 +31,41 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentRecordServiceImpl implements PaymentRecordServiceI {
|
||||
|
||||
private final PaymentRecordCreateCmdExe paymentRecordCreateCmdExe;
|
||||
private final PaymentRecordUpdateCmdExe paymentRecordUpdateCmdExe;
|
||||
private final PaymentRecordPageQryExe paymentRecordPageQryExe;
|
||||
private final PaymentRecordListQryExe paymentRecordListQryExe;
|
||||
private final PaymentRecordShowQryExe paymentRecordShowQryExe;
|
||||
private final PaymentRecordDestroyCmdExe paymentRecordDestroyCmdExe;
|
||||
private final PaymentRecordCreateCmdExe paymentRecordCreateCmdExe;
|
||||
private final PaymentRecordUpdateCmdExe paymentRecordUpdateCmdExe;
|
||||
private final PaymentRecordPageQryExe paymentRecordPageQryExe;
|
||||
private final PaymentRecordListQryExe paymentRecordListQryExe;
|
||||
private final PaymentRecordShowQryExe paymentRecordShowQryExe;
|
||||
private final PaymentRecordDestroyCmdExe paymentRecordDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public PaymentRecordVO create(PaymentRecordCreateCmd paymentRecordCreateCmd) {
|
||||
return paymentRecordCreateCmdExe.execute(paymentRecordCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public PaymentRecordVO create(PaymentRecordCreateCmd paymentRecordCreateCmd) {
|
||||
return paymentRecordCreateCmdExe.execute(paymentRecordCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<PaymentRecordVO> page(PaymentRecordPageQry paymentRecordPageQry) {
|
||||
return PageDTO.of(paymentRecordPageQryExe.execute(paymentRecordPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<PaymentRecordVO> page(PaymentRecordPageQry paymentRecordPageQry) {
|
||||
return PageDTO.of(paymentRecordPageQryExe.execute(paymentRecordPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PaymentRecordVO> list(PaymentRecordListQry paymentRecordListQry) {
|
||||
return paymentRecordListQryExe.execute(paymentRecordListQry);
|
||||
}
|
||||
@Override
|
||||
public List<PaymentRecordVO> list(PaymentRecordListQry paymentRecordListQry) {
|
||||
return paymentRecordListQryExe.execute(paymentRecordListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentRecordVO update(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
|
||||
return paymentRecordUpdateCmdExe.execute(paymentRecordUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public PaymentRecordVO update(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
|
||||
return paymentRecordUpdateCmdExe.execute(paymentRecordUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentRecordVO show(PaymentRecordShowQry paymentRecordShowQry) {
|
||||
return paymentRecordShowQryExe.execute(paymentRecordShowQry);
|
||||
}
|
||||
@Override
|
||||
public PaymentRecordVO show(PaymentRecordShowQry paymentRecordShowQry) {
|
||||
return paymentRecordShowQryExe.execute(paymentRecordShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
|
||||
paymentRecordDestroyCmdExe.execute(paymentRecordDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
|
||||
paymentRecordDestroyCmdExe.execute(paymentRecordDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -36,53 +36,53 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class PaymentTaskServiceImpl implements PaymentTaskServiceI {
|
||||
|
||||
private final PaymentTaskCreateCmdExe paymentTaskCreateCmdExe;
|
||||
private final PaymentTaskUpdateCmdExe paymentTaskUpdateCmdExe;
|
||||
private final PaymentTaskPageQryExe paymentTaskPageQryExe;
|
||||
private final PaymentTaskListQryExe paymentTaskListQryExe;
|
||||
private final PaymentTaskShowQryExe paymentTaskShowQryExe;
|
||||
private final PaymentTaskDestroyCmdExe paymentTaskDestroyCmdExe;
|
||||
private final PaymentTaskStatisticsQryExe paymentTaskStatisticsQryExe;
|
||||
private final PaymentTaskPayCmdExe paymentTaskPayCmdExe;
|
||||
private final PaymentTaskCreateCmdExe paymentTaskCreateCmdExe;
|
||||
private final PaymentTaskUpdateCmdExe paymentTaskUpdateCmdExe;
|
||||
private final PaymentTaskPageQryExe paymentTaskPageQryExe;
|
||||
private final PaymentTaskListQryExe paymentTaskListQryExe;
|
||||
private final PaymentTaskShowQryExe paymentTaskShowQryExe;
|
||||
private final PaymentTaskDestroyCmdExe paymentTaskDestroyCmdExe;
|
||||
private final PaymentTaskStatisticsQryExe paymentTaskStatisticsQryExe;
|
||||
private final PaymentTaskPayCmdExe paymentTaskPayCmdExe;
|
||||
|
||||
@Override
|
||||
public PaymentTaskVO create(PaymentTaskCreateCmd paymentTaskCreateCmd) {
|
||||
return paymentTaskCreateCmdExe.execute(paymentTaskCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public PaymentTaskVO create(PaymentTaskCreateCmd paymentTaskCreateCmd) {
|
||||
return paymentTaskCreateCmdExe.execute(paymentTaskCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<PaymentTaskVO> page(PaymentTaskPageQry paymentTaskPageQry) {
|
||||
return PageDTO.of(paymentTaskPageQryExe.execute(paymentTaskPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<PaymentTaskVO> page(PaymentTaskPageQry paymentTaskPageQry) {
|
||||
return PageDTO.of(paymentTaskPageQryExe.execute(paymentTaskPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PaymentTaskVO> list(PaymentTaskListQry paymentTaskListQry) {
|
||||
return paymentTaskListQryExe.execute(paymentTaskListQry);
|
||||
}
|
||||
@Override
|
||||
public List<PaymentTaskVO> list(PaymentTaskListQry paymentTaskListQry) {
|
||||
return paymentTaskListQryExe.execute(paymentTaskListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentTaskVO update(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
|
||||
return paymentTaskUpdateCmdExe.execute(paymentTaskUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public PaymentTaskVO update(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
|
||||
return paymentTaskUpdateCmdExe.execute(paymentTaskUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentTaskVO show(PaymentTaskShowQry paymentTaskShowQry) {
|
||||
return paymentTaskShowQryExe.execute(paymentTaskShowQry);
|
||||
}
|
||||
@Override
|
||||
public PaymentTaskVO show(PaymentTaskShowQry paymentTaskShowQry) {
|
||||
return paymentTaskShowQryExe.execute(paymentTaskShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
|
||||
paymentTaskDestroyCmdExe.execute(paymentTaskDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
|
||||
paymentTaskDestroyCmdExe.execute(paymentTaskDestroyCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentTaskStatisticsVO statistics(PaymentTaskStatisticsQry statisticsQry) {
|
||||
return paymentTaskStatisticsQryExe.execute(statisticsQry);
|
||||
}
|
||||
@Override
|
||||
public PaymentTaskStatisticsVO statistics(PaymentTaskStatisticsQry statisticsQry) {
|
||||
return paymentTaskStatisticsQryExe.execute(statisticsQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaymentTaskVO pay(PaymentTaskPayCmd paymentTaskPayCmd) {
|
||||
return paymentTaskPayCmdExe.execute(paymentTaskPayCmd);
|
||||
}
|
||||
@Override
|
||||
public PaymentTaskVO pay(PaymentTaskPayCmd paymentTaskPayCmd) {
|
||||
return paymentTaskPayCmdExe.execute(paymentTaskPayCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -3,8 +3,8 @@ package com.xunhong.erp.turbo.biz.app.service;
|
||||
import com.xunhong.erp.turbo.api.biz.api.ProductServiceI;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductCreateCmd;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductDestroyCmd;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductUpdateCmd;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductDragCmd;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductUpdateCmd;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.qry.ProductListQry;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.qry.ProductPageQry;
|
||||
import com.xunhong.erp.turbo.api.biz.dto.qry.ProductShowQry;
|
||||
@ -13,10 +13,10 @@ import com.xunhong.erp.turbo.base.dto.PageDTO;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.cmd.ProductCreateCmdExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.cmd.ProductDestroyCmdExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.cmd.ProductUpdateCmdExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.query.ProductDragCmdExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.query.ProductListQryExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.query.ProductPageQryExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.query.ProductShowQryExe;
|
||||
import com.xunhong.erp.turbo.biz.app.executor.query.ProductDragCmdExe;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
@ -33,46 +33,46 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ProductServiceImpl implements ProductServiceI {
|
||||
|
||||
private final ProductCreateCmdExe productCreateCmdExe;
|
||||
private final ProductUpdateCmdExe productUpdateCmdExe;
|
||||
private final ProductPageQryExe productPageQryExe;
|
||||
private final ProductListQryExe productListQryExe;
|
||||
private final ProductShowQryExe productShowQryExe;
|
||||
private final ProductDestroyCmdExe productDestroyCmdExe;
|
||||
private final ProductDragCmdExe productDragCmdExe;
|
||||
private final ProductCreateCmdExe productCreateCmdExe;
|
||||
private final ProductUpdateCmdExe productUpdateCmdExe;
|
||||
private final ProductPageQryExe productPageQryExe;
|
||||
private final ProductListQryExe productListQryExe;
|
||||
private final ProductShowQryExe productShowQryExe;
|
||||
private final ProductDestroyCmdExe productDestroyCmdExe;
|
||||
private final ProductDragCmdExe productDragCmdExe;
|
||||
|
||||
@Override
|
||||
public ProductVO create(ProductCreateCmd productCreateCmd) {
|
||||
return productCreateCmdExe.execute(productCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public ProductVO create(ProductCreateCmd productCreateCmd) {
|
||||
return productCreateCmdExe.execute(productCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<ProductVO> page(ProductPageQry productPageQry) {
|
||||
return PageDTO.of(productPageQryExe.execute(productPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<ProductVO> page(ProductPageQry productPageQry) {
|
||||
return PageDTO.of(productPageQryExe.execute(productPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ProductVO> list(ProductListQry productListQry) {
|
||||
return productListQryExe.execute(productListQry);
|
||||
}
|
||||
@Override
|
||||
public List<ProductVO> list(ProductListQry productListQry) {
|
||||
return productListQryExe.execute(productListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductVO update(ProductUpdateCmd productUpdateCmd) {
|
||||
return productUpdateCmdExe.execute(productUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public ProductVO update(ProductUpdateCmd productUpdateCmd) {
|
||||
return productUpdateCmdExe.execute(productUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductVO show(ProductShowQry productShowQry) {
|
||||
return productShowQryExe.execute(productShowQry);
|
||||
}
|
||||
@Override
|
||||
public ProductVO show(ProductShowQry productShowQry) {
|
||||
return productShowQryExe.execute(productShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(ProductDestroyCmd productDestroyCmd) {
|
||||
productDestroyCmdExe.execute(productDestroyCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drag(ProductDragCmd productDragCmd) {
|
||||
productDragCmdExe.execute(productDragCmd);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void destroy(ProductDestroyCmd productDestroyCmd) {
|
||||
productDestroyCmdExe.execute(productDestroyCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drag(ProductDragCmd productDragCmd) {
|
||||
productDragCmdExe.execute(productDragCmd);
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,41 +31,41 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationInvoiceServiceImpl implements ReconciliationInvoiceServiceI {
|
||||
|
||||
private final ReconciliationInvoiceCreateCmdExe reconciliationInvoiceCreateCmdExe;
|
||||
private final ReconciliationInvoiceUpdateCmdExe reconciliationInvoiceUpdateCmdExe;
|
||||
private final ReconciliationInvoicePageQryExe reconciliationInvoicePageQryExe;
|
||||
private final ReconciliationInvoiceListQryExe reconciliationInvoiceListQryExe;
|
||||
private final ReconciliationInvoiceShowQryExe reconciliationInvoiceShowQryExe;
|
||||
private final ReconciliationInvoiceDestroyCmdExe reconciliationInvoiceDestroyCmdExe;
|
||||
private final ReconciliationInvoiceCreateCmdExe reconciliationInvoiceCreateCmdExe;
|
||||
private final ReconciliationInvoiceUpdateCmdExe reconciliationInvoiceUpdateCmdExe;
|
||||
private final ReconciliationInvoicePageQryExe reconciliationInvoicePageQryExe;
|
||||
private final ReconciliationInvoiceListQryExe reconciliationInvoiceListQryExe;
|
||||
private final ReconciliationInvoiceShowQryExe reconciliationInvoiceShowQryExe;
|
||||
private final ReconciliationInvoiceDestroyCmdExe reconciliationInvoiceDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public ReconciliationInvoiceVO create(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
|
||||
return reconciliationInvoiceCreateCmdExe.execute(reconciliationInvoiceCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationInvoiceVO create(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
|
||||
return reconciliationInvoiceCreateCmdExe.execute(reconciliationInvoiceCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<ReconciliationInvoiceVO> page(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
|
||||
return PageDTO.of(reconciliationInvoicePageQryExe.execute(reconciliationInvoicePageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<ReconciliationInvoiceVO> page(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
|
||||
return PageDTO.of(reconciliationInvoicePageQryExe.execute(reconciliationInvoicePageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ReconciliationInvoiceVO> list(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
|
||||
return reconciliationInvoiceListQryExe.execute(reconciliationInvoiceListQry);
|
||||
}
|
||||
@Override
|
||||
public List<ReconciliationInvoiceVO> list(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
|
||||
return reconciliationInvoiceListQryExe.execute(reconciliationInvoiceListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationInvoiceVO update(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
|
||||
return reconciliationInvoiceUpdateCmdExe.execute(reconciliationInvoiceUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationInvoiceVO update(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
|
||||
return reconciliationInvoiceUpdateCmdExe.execute(reconciliationInvoiceUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationInvoiceVO show(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
|
||||
return reconciliationInvoiceShowQryExe.execute(reconciliationInvoiceShowQry);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationInvoiceVO show(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
|
||||
return reconciliationInvoiceShowQryExe.execute(reconciliationInvoiceShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
|
||||
reconciliationInvoiceDestroyCmdExe.execute(reconciliationInvoiceDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
|
||||
reconciliationInvoiceDestroyCmdExe.execute(reconciliationInvoiceDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,41 +31,41 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationPaymentServiceImpl implements ReconciliationPaymentServiceI {
|
||||
|
||||
private final ReconciliationPaymentCreateCmdExe reconciliationPaymentCreateCmdExe;
|
||||
private final ReconciliationPaymentUpdateCmdExe reconciliationPaymentUpdateCmdExe;
|
||||
private final ReconciliationPaymentPageQryExe reconciliationPaymentPageQryExe;
|
||||
private final ReconciliationPaymentListQryExe reconciliationPaymentListQryExe;
|
||||
private final ReconciliationPaymentShowQryExe reconciliationPaymentShowQryExe;
|
||||
private final ReconciliationPaymentDestroyCmdExe reconciliationPaymentDestroyCmdExe;
|
||||
private final ReconciliationPaymentCreateCmdExe reconciliationPaymentCreateCmdExe;
|
||||
private final ReconciliationPaymentUpdateCmdExe reconciliationPaymentUpdateCmdExe;
|
||||
private final ReconciliationPaymentPageQryExe reconciliationPaymentPageQryExe;
|
||||
private final ReconciliationPaymentListQryExe reconciliationPaymentListQryExe;
|
||||
private final ReconciliationPaymentShowQryExe reconciliationPaymentShowQryExe;
|
||||
private final ReconciliationPaymentDestroyCmdExe reconciliationPaymentDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public ReconciliationPaymentVO create(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
|
||||
return reconciliationPaymentCreateCmdExe.execute(reconciliationPaymentCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationPaymentVO create(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
|
||||
return reconciliationPaymentCreateCmdExe.execute(reconciliationPaymentCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<ReconciliationPaymentVO> page(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
|
||||
return PageDTO.of(reconciliationPaymentPageQryExe.execute(reconciliationPaymentPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<ReconciliationPaymentVO> page(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
|
||||
return PageDTO.of(reconciliationPaymentPageQryExe.execute(reconciliationPaymentPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ReconciliationPaymentVO> list(ReconciliationPaymentListQry reconciliationPaymentListQry) {
|
||||
return reconciliationPaymentListQryExe.execute(reconciliationPaymentListQry);
|
||||
}
|
||||
@Override
|
||||
public List<ReconciliationPaymentVO> list(ReconciliationPaymentListQry reconciliationPaymentListQry) {
|
||||
return reconciliationPaymentListQryExe.execute(reconciliationPaymentListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationPaymentVO update(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
|
||||
return reconciliationPaymentUpdateCmdExe.execute(reconciliationPaymentUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationPaymentVO update(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
|
||||
return reconciliationPaymentUpdateCmdExe.execute(reconciliationPaymentUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationPaymentVO show(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
|
||||
return reconciliationPaymentShowQryExe.execute(reconciliationPaymentShowQry);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationPaymentVO show(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
|
||||
return reconciliationPaymentShowQryExe.execute(reconciliationPaymentShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
|
||||
reconciliationPaymentDestroyCmdExe.execute(reconciliationPaymentDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
|
||||
reconciliationPaymentDestroyCmdExe.execute(reconciliationPaymentDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -33,47 +33,47 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class ReconciliationServiceImpl implements ReconciliationServiceI {
|
||||
|
||||
private final ReconciliationCreateCmdExe reconciliationCreateCmdExe;
|
||||
private final ReconciliationUpdateCmdExe reconciliationUpdateCmdExe;
|
||||
private final ReconciliationPageQryExe reconciliationPageQryExe;
|
||||
private final ReconciliationListQryExe reconciliationListQryExe;
|
||||
private final ReconciliationShowQryExe reconciliationShowQryExe;
|
||||
private final ReconciliationCompleteCmdExe reconciliationCompleteCmdExe;
|
||||
private final ReconciliationDestroyCmdExe reconciliationDestroyCmdExe;
|
||||
private final ReconciliationCreateCmdExe reconciliationCreateCmdExe;
|
||||
private final ReconciliationUpdateCmdExe reconciliationUpdateCmdExe;
|
||||
private final ReconciliationPageQryExe reconciliationPageQryExe;
|
||||
private final ReconciliationListQryExe reconciliationListQryExe;
|
||||
private final ReconciliationShowQryExe reconciliationShowQryExe;
|
||||
private final ReconciliationCompleteCmdExe reconciliationCompleteCmdExe;
|
||||
private final ReconciliationDestroyCmdExe reconciliationDestroyCmdExe;
|
||||
|
||||
@Override
|
||||
public ReconciliationVO create(ReconciliationCreateCmd reconciliationCreateCmd) {
|
||||
return reconciliationCreateCmdExe.execute(reconciliationCreateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationVO create(ReconciliationCreateCmd reconciliationCreateCmd) {
|
||||
return reconciliationCreateCmdExe.execute(reconciliationCreateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageDTO<ReconciliationVO> page(ReconciliationPageQry reconciliationPageQry) {
|
||||
return PageDTO.of(reconciliationPageQryExe.execute(reconciliationPageQry));
|
||||
}
|
||||
@Override
|
||||
public PageDTO<ReconciliationVO> page(ReconciliationPageQry reconciliationPageQry) {
|
||||
return PageDTO.of(reconciliationPageQryExe.execute(reconciliationPageQry));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ReconciliationVO> list(ReconciliationListQry reconciliationListQry) {
|
||||
return reconciliationListQryExe.execute(reconciliationListQry);
|
||||
}
|
||||
@Override
|
||||
public List<ReconciliationVO> list(ReconciliationListQry reconciliationListQry) {
|
||||
return reconciliationListQryExe.execute(reconciliationListQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationVO update(ReconciliationUpdateCmd reconciliationUpdateCmd) {
|
||||
return reconciliationUpdateCmdExe.execute(reconciliationUpdateCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationVO update(ReconciliationUpdateCmd reconciliationUpdateCmd) {
|
||||
return reconciliationUpdateCmdExe.execute(reconciliationUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationVO show(ReconciliationShowQry reconciliationShowQry) {
|
||||
return reconciliationShowQryExe.execute(reconciliationShowQry);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationVO show(ReconciliationShowQry reconciliationShowQry) {
|
||||
return reconciliationShowQryExe.execute(reconciliationShowQry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReconciliationVO complete(ReconciliationCompleteCmd reconciliationCompleteCmd) {
|
||||
return reconciliationCompleteCmdExe.execute(reconciliationCompleteCmd);
|
||||
}
|
||||
@Override
|
||||
public ReconciliationVO complete(ReconciliationCompleteCmd reconciliationCompleteCmd) {
|
||||
return reconciliationCompleteCmdExe.execute(reconciliationCompleteCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy(ReconciliationDestroyCmd reconciliationDestroyCmd) {
|
||||
reconciliationDestroyCmdExe.execute(reconciliationDestroyCmd);
|
||||
}
|
||||
@Override
|
||||
public void destroy(ReconciliationDestroyCmd reconciliationDestroyCmd) {
|
||||
reconciliationDestroyCmdExe.execute(reconciliationDestroyCmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,65 +18,65 @@ import java.time.LocalDateTime;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Audit extends DTO {
|
||||
|
||||
/**
|
||||
* 审核Id
|
||||
*/
|
||||
private Long auditId;
|
||||
/**
|
||||
* 审核Id
|
||||
*/
|
||||
private Long auditId;
|
||||
|
||||
/**
|
||||
* 资源Id
|
||||
*/
|
||||
private Long subjectId;
|
||||
/**
|
||||
* 资源Id
|
||||
*/
|
||||
private Long subjectId;
|
||||
|
||||
/**
|
||||
* 资源类型
|
||||
*/
|
||||
private AuditSubjectTypeEnum subjectType;
|
||||
/**
|
||||
* 资源类型
|
||||
*/
|
||||
private AuditSubjectTypeEnum subjectType;
|
||||
|
||||
/**
|
||||
* 审核状态: 1_待审核;2_审核中;3_审核通过;4_审核驳回;5_审核撤回
|
||||
*/
|
||||
/**
|
||||
* 审核状态: 1_待审核;2_审核中;3_审核通过;4_审核驳回;5_审核撤回
|
||||
*/
|
||||
private AuditStateEnum state;
|
||||
|
||||
/**
|
||||
* 审核类型:1_审核员审核;2_老板审核
|
||||
*/
|
||||
/**
|
||||
* 审核类型:1_审核员审核;2_老板审核
|
||||
*/
|
||||
private AuditTypeEnum type;
|
||||
|
||||
/**
|
||||
* 驳回原因
|
||||
*/
|
||||
private String auditReason;
|
||||
/**
|
||||
* 驳回原因
|
||||
*/
|
||||
private String auditReason;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
private LocalDateTime auditAt;
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
private LocalDateTime auditAt;
|
||||
|
||||
/**
|
||||
* 审核人ID
|
||||
*/
|
||||
private Long auditBy;
|
||||
/**
|
||||
* 审核人ID
|
||||
*/
|
||||
private Long auditBy;
|
||||
|
||||
/**
|
||||
* 审核人名称
|
||||
*/
|
||||
private String auditByName;
|
||||
/**
|
||||
* 审核人名称
|
||||
*/
|
||||
private String auditByName;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createdBy;
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createdBy;
|
||||
|
||||
/**
|
||||
* 创建人姓名
|
||||
*/
|
||||
private String createdByName;
|
||||
/**
|
||||
* 创建人姓名
|
||||
*/
|
||||
private String createdByName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
/**
|
||||
* 采购订单
|
||||
|
||||
@ -16,35 +16,35 @@ import java.time.LocalDateTime;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class BoxSpec extends DTO {
|
||||
|
||||
/**
|
||||
* 规格ID
|
||||
*/
|
||||
private Long specId;
|
||||
/**
|
||||
* 规格ID
|
||||
*/
|
||||
private Long specId;
|
||||
|
||||
/**
|
||||
* 规格名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 规格名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
private BigDecimal sort;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
private BigDecimal sort;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态:1_启用;0_禁用
|
||||
*/
|
||||
private Boolean status;
|
||||
/**
|
||||
* 状态:1_启用;0_禁用
|
||||
*/
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -19,50 +19,50 @@ import java.util.List;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Cost extends DTO {
|
||||
|
||||
/**
|
||||
* 费用ID
|
||||
*/
|
||||
private Long costId;
|
||||
/**
|
||||
* 费用ID
|
||||
*/
|
||||
private Long costId;
|
||||
|
||||
/**
|
||||
* 费用类型:1_辅料类型;2_人工类型;3_产地类型;4_其他类型;5_物流类型
|
||||
*/
|
||||
private CostTypeEnum type;
|
||||
|
||||
/**
|
||||
* 费用归属:0_无归属;1_工头;2_产地;3_司机;
|
||||
*/
|
||||
private CostBelongEnum belong;
|
||||
/**
|
||||
* 费用归属:0_无归属;1_工头;2_产地;3_司机;
|
||||
*/
|
||||
private CostBelongEnum belong;
|
||||
|
||||
/**
|
||||
* 费用名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 费用名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
private BigDecimal sort;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
private BigDecimal sort;
|
||||
|
||||
/**
|
||||
* 状态:1_启用;0_禁用
|
||||
*/
|
||||
private Boolean status;
|
||||
/**
|
||||
* 状态:1_启用;0_禁用
|
||||
*/
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
* 是否默认
|
||||
@ -73,10 +73,10 @@ public class Cost extends DTO {
|
||||
|
||||
private List<CostItem> costItemList;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user