feat(invoice): 更新对账发票查询条件和数据传输对象

- 修改 ReconciliationInvoicePageQry 查询类,替换 reconciliationInvoiceId 字段为 dealerId、companyId、reconciliationId、invoiceDate 和 invoiceSn 字段
- 在 ReconciliationInvoiceVO 中添加 dealerVO、companyVO 和 dealerPaymentAccountVO 信息字段
- 更新多个 Assembler 类中的映射配置,包括 ReconciliationInvoiceAssembler、AuditAssembler、CostAssembler 等
- 重构多个执行器类的代码格式,统一字段注入和服务调用方式
- 移除 ProductDestroyCmdExe 中不必要的 ProductAssembler 注入
This commit is contained in:
shenyifei 2026-01-13 13:41:21 +08:00
parent 1e29eda0b4
commit b582d62a7b
179 changed files with 2338 additions and 2194 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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"> 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> <modelVersion>4.0.0</modelVersion>

View File

@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class}) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class})
public interface AuditAssembler { public interface AuditAssembler {
@Mapping(target = "orderVO", source = "order") @Mapping(target = "orderVO", source = "order")
AuditVO toAuditVO(Audit audit); AuditVO toAuditVO(Audit audit);
} }

View File

@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface BoxSpecAssembler { public interface BoxSpecAssembler {
BoxSpecVO toBoxSpecVO(BoxSpec boxSpec); BoxSpecVO toBoxSpecVO(BoxSpec boxSpec);
} }

View File

@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface CostAssembler { public interface CostAssembler {
@Mapping(target = "costItemVOList", source = "costItemList") @Mapping(target = "costItemVOList", source = "costItemList")
CostVO toCostVO(Cost cost); CostVO toCostVO(Cost cost);
} }

View File

@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class}) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class})
public interface DealerAccountRecordAssembler { public interface DealerAccountRecordAssembler {
@Mapping(target = "orderVO", source = "order") @Mapping(target = "orderVO", source = "order")
@Mapping(target = "orderShipVO", source = "orderShip") @Mapping(target = "orderShipVO", source = "orderShip")
@Mapping(target = "dealerVO", source = "dealer") @Mapping(target = "dealerVO", source = "dealer")
DealerAccountRecordVO toDealerAccountRecordVO(DealerAccountRecord dealerAccountRecord); DealerAccountRecordVO toDealerAccountRecordVO(DealerAccountRecord dealerAccountRecord);

View File

@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ExpenseRecordAssembler { public interface ExpenseRecordAssembler {
ExpenseRecordVO toExpenseRecordVO(ExpenseRecord expenseRecord); ExpenseRecordVO toExpenseRecordVO(ExpenseRecord expenseRecord);
} }

View File

@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderSupplierAssembler.class}) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderSupplierAssembler.class})
public interface PaymentTaskAssembler { public interface PaymentTaskAssembler {
@Mapping(target = "supplierVO", source = "supplier") @Mapping(target = "supplierVO", source = "supplier")
@Mapping(target = "orderSupplierVOList", source = "orderSupplierList") @Mapping(target = "orderSupplierVOList", source = "orderSupplierList")
PaymentTaskVO toPaymentTaskVO(PaymentTask paymentTask); PaymentTaskVO toPaymentTaskVO(PaymentTask paymentTask);
} }

View File

@ -12,6 +12,6 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ProductAssembler { public interface ProductAssembler {
@Mapping(target = "costVOList", source = "costList") @Mapping(target = "costVOList", source = "costList")
ProductVO toProductVO(Product product); ProductVO toProductVO(Product product);
} }

View File

@ -12,7 +12,7 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationAssembler { public interface ReconciliationAssembler {
@Mapping(target = "dealerVO", source = "dealer") @Mapping(target = "dealerVO", source = "dealer")
@Mapping(target = "companyVO", source = "company") @Mapping(target = "companyVO", source = "company")
@Mapping(target = "orderShipVOList", source = "orderShipList") @Mapping(target = "orderShipVOList", source = "orderShipList")
ReconciliationVO toReconciliationVO(Reconciliation reconciliation); ReconciliationVO toReconciliationVO(Reconciliation reconciliation);

View File

@ -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.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice; import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy; import org.mapstruct.NullValueCheckStrategy;
/** /**
@ -11,5 +12,8 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationInvoiceAssembler { 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);
} }

View File

@ -11,5 +11,5 @@ import org.mapstruct.NullValueCheckStrategy;
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS) @Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationPaymentAssembler { public interface ReconciliationPaymentAssembler {
ReconciliationPaymentVO toReconciliationPaymentVO(ReconciliationPayment reconciliationPayment); ReconciliationPaymentVO toReconciliationPaymentVO(ReconciliationPayment reconciliationPayment);
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class AuditUpdateCmdExe { public class AuditUpdateCmdExe {
private final AuditAssembler auditAssembler; private final AuditAssembler auditAssembler;
private final AuditGateway auditGateway; private final AuditGateway auditGateway;
public AuditVO execute(AuditUpdateCmd auditUpdateCmd) { public AuditVO execute(AuditUpdateCmd auditUpdateCmd) {
Audit audit = auditGateway.update(auditUpdateCmd); Audit audit = auditGateway.update(auditUpdateCmd);
return auditAssembler.toAuditVO(audit); return auditAssembler.toAuditVO(audit);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecCreateCmdExe { public class BoxSpecCreateCmdExe {
private final BoxSpecAssembler boxSpecAssembler; private final BoxSpecAssembler boxSpecAssembler;
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
public BoxSpecVO execute(BoxSpecCreateCmd boxSpecCreateCmd) { public BoxSpecVO execute(BoxSpecCreateCmd boxSpecCreateCmd) {
BoxSpec boxSpec = boxSpecGateway.save(boxSpecCreateCmd); BoxSpec boxSpec = boxSpecGateway.save(boxSpecCreateCmd);
return boxSpecAssembler.toBoxSpecVO(boxSpec); return boxSpecAssembler.toBoxSpecVO(boxSpec);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecDestroyCmdExe { public class BoxSpecDestroyCmdExe {
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
public void execute(BoxSpecDestroyCmd boxSpecDestroyCmd) { public void execute(BoxSpecDestroyCmd boxSpecDestroyCmd) {
boxSpecGateway.destroy(boxSpecDestroyCmd); boxSpecGateway.destroy(boxSpecDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecUpdateCmdExe { public class BoxSpecUpdateCmdExe {
private final BoxSpecAssembler boxSpecAssembler; private final BoxSpecAssembler boxSpecAssembler;
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
public BoxSpecVO execute(BoxSpecUpdateCmd boxSpecUpdateCmd) { public BoxSpecVO execute(BoxSpecUpdateCmd boxSpecUpdateCmd) {
BoxSpec boxSpec = boxSpecGateway.update(boxSpecUpdateCmd); BoxSpec boxSpec = boxSpecGateway.update(boxSpecUpdateCmd);
return boxSpecAssembler.toBoxSpecVO(boxSpec); return boxSpecAssembler.toBoxSpecVO(boxSpec);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostCreateCmdExe { public class CostCreateCmdExe {
private final CostAssembler costAssembler; private final CostAssembler costAssembler;
private final CostGateway costGateway; private final CostGateway costGateway;
public CostVO execute(CostCreateCmd costCreateCmd) { public CostVO execute(CostCreateCmd costCreateCmd) {
Cost cost = costGateway.save(costCreateCmd); Cost cost = costGateway.save(costCreateCmd);
return costAssembler.toCostVO(cost); return costAssembler.toCostVO(cost);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostDestroyCmdExe { public class CostDestroyCmdExe {
private final CostGateway costGateway; private final CostGateway costGateway;
public void execute(CostDestroyCmd costDestroyCmd) { public void execute(CostDestroyCmd costDestroyCmd) {
costGateway.destroy(costDestroyCmd); costGateway.destroy(costDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostUpdateCmdExe { public class CostUpdateCmdExe {
private final CostAssembler costAssembler; private final CostAssembler costAssembler;
private final CostGateway costGateway; private final CostGateway costGateway;
public CostVO execute(CostUpdateCmd costUpdateCmd) { public CostVO execute(CostUpdateCmd costUpdateCmd) {
Cost cost = costGateway.update(costUpdateCmd); Cost cost = costGateway.update(costUpdateCmd);
return costAssembler.toCostVO(cost); return costAssembler.toCostVO(cost);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordCreateCmdExe { public class DealerAccountRecordCreateCmdExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler; private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) { public DealerAccountRecordVO execute(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.save(dealerAccountRecordCreateCmd); DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.save(dealerAccountRecordCreateCmd);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord); return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordDestroyCmdExe { public class DealerAccountRecordDestroyCmdExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
public void execute(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) { public void execute(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
dealerAccountRecordGateway.destroy(dealerAccountRecordDestroyCmd); dealerAccountRecordGateway.destroy(dealerAccountRecordDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordUpdateCmdExe { public class DealerAccountRecordUpdateCmdExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler; private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) { public DealerAccountRecordVO execute(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.update(dealerAccountRecordUpdateCmd); DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.update(dealerAccountRecordUpdateCmd);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord); return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExpenseRecordCreateCmdExe { public class ExpenseRecordCreateCmdExe {
private final ExpenseRecordAssembler expenseRecordAssembler; private final ExpenseRecordAssembler expenseRecordAssembler;
private final ExpenseRecordGateway expenseRecordGateway; private final ExpenseRecordGateway expenseRecordGateway;
public ExpenseRecordVO execute(ExpenseRecordCreateCmd expenseRecordCreateCmd) { public ExpenseRecordVO execute(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
ExpenseRecord expenseRecord = expenseRecordGateway.save(expenseRecordCreateCmd); ExpenseRecord expenseRecord = expenseRecordGateway.save(expenseRecordCreateCmd);
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord); return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExpenseRecordUpdateCmdExe { public class ExpenseRecordUpdateCmdExe {
private final ExpenseRecordAssembler expenseRecordAssembler; private final ExpenseRecordAssembler expenseRecordAssembler;
private final ExpenseRecordGateway expenseRecordGateway; private final ExpenseRecordGateway expenseRecordGateway;
public ExpenseRecordVO execute(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) { public ExpenseRecordVO execute(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
ExpenseRecord expenseRecord = expenseRecordGateway.update(expenseRecordUpdateCmd); ExpenseRecord expenseRecord = expenseRecordGateway.update(expenseRecordUpdateCmd);
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord); return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class OrderSupplierUpdateCmdExe { public class OrderSupplierUpdateCmdExe {
private final OrderSupplierAssembler orderSupplierAssembler; private final OrderSupplierAssembler orderSupplierAssembler;
private final OrderSupplierGateway orderSupplierGateway; private final OrderSupplierGateway orderSupplierGateway;
public OrderSupplierVO execute(OrderSupplierUpdateCmd orderSupplierUpdateCmd) { public OrderSupplierVO execute(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
OrderSupplier orderSupplier = orderSupplierGateway.update(orderSupplierUpdateCmd); OrderSupplier orderSupplier = orderSupplierGateway.update(orderSupplierUpdateCmd);
return orderSupplierAssembler.toOrderSupplierVO(orderSupplier); return orderSupplierAssembler.toOrderSupplierVO(orderSupplier);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordCreateCmdExe { public class PaymentRecordCreateCmdExe {
private final PaymentRecordAssembler paymentRecordAssembler; private final PaymentRecordAssembler paymentRecordAssembler;
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
public PaymentRecordVO execute(PaymentRecordCreateCmd paymentRecordCreateCmd) { public PaymentRecordVO execute(PaymentRecordCreateCmd paymentRecordCreateCmd) {
PaymentRecord paymentRecord = paymentRecordGateway.save(paymentRecordCreateCmd); PaymentRecord paymentRecord = paymentRecordGateway.save(paymentRecordCreateCmd);
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord); return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordDestroyCmdExe { public class PaymentRecordDestroyCmdExe {
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
public void execute(PaymentRecordDestroyCmd paymentRecordDestroyCmd) { public void execute(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
paymentRecordGateway.destroy(paymentRecordDestroyCmd); paymentRecordGateway.destroy(paymentRecordDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordUpdateCmdExe { public class PaymentRecordUpdateCmdExe {
private final PaymentRecordAssembler paymentRecordAssembler; private final PaymentRecordAssembler paymentRecordAssembler;
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
public PaymentRecordVO execute(PaymentRecordUpdateCmd paymentRecordUpdateCmd) { public PaymentRecordVO execute(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
PaymentRecord paymentRecord = paymentRecordGateway.update(paymentRecordUpdateCmd); PaymentRecord paymentRecord = paymentRecordGateway.update(paymentRecordUpdateCmd);
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord); return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskCreateCmdExe { public class PaymentTaskCreateCmdExe {
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
public PaymentTaskVO execute(PaymentTaskCreateCmd paymentTaskCreateCmd) { public PaymentTaskVO execute(PaymentTaskCreateCmd paymentTaskCreateCmd) {
PaymentTask paymentTask = paymentTaskGateway.save(paymentTaskCreateCmd); PaymentTask paymentTask = paymentTaskGateway.save(paymentTaskCreateCmd);
return paymentTaskAssembler.toPaymentTaskVO(paymentTask); return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskDestroyCmdExe { public class PaymentTaskDestroyCmdExe {
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
public void execute(PaymentTaskDestroyCmd paymentTaskDestroyCmd) { public void execute(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
paymentTaskGateway.destroy(paymentTaskDestroyCmd); paymentTaskGateway.destroy(paymentTaskDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskPayCmdExe { public class PaymentTaskPayCmdExe {
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
public PaymentTaskVO execute(PaymentTaskPayCmd paymentTaskPayCmd) { public PaymentTaskVO execute(PaymentTaskPayCmd paymentTaskPayCmd) {
PaymentTask paymentTask = paymentTaskGateway.pay(paymentTaskPayCmd); PaymentTask paymentTask = paymentTaskGateway.pay(paymentTaskPayCmd);
return paymentTaskAssembler.toPaymentTaskVO(paymentTask); return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskUpdateCmdExe { public class PaymentTaskUpdateCmdExe {
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
public PaymentTaskVO execute(PaymentTaskUpdateCmd paymentTaskUpdateCmd) { public PaymentTaskVO execute(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
PaymentTask paymentTask = paymentTaskGateway.update(paymentTaskUpdateCmd); PaymentTask paymentTask = paymentTaskGateway.update(paymentTaskUpdateCmd);
return paymentTaskAssembler.toPaymentTaskVO(paymentTask); return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductCreateCmdExe { public class ProductCreateCmdExe {
private final ProductAssembler productAssembler; private final ProductAssembler productAssembler;
private final ProductGateway productGateway; private final ProductGateway productGateway;
public ProductVO execute(ProductCreateCmd productCreateCmd) { public ProductVO execute(ProductCreateCmd productCreateCmd) {
Product product = productGateway.save(productCreateCmd); Product product = productGateway.save(productCreateCmd);
return productAssembler.toProductVO(product); return productAssembler.toProductVO(product);
} }
} }

View File

@ -1,7 +1,6 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd; package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductDestroyCmd; 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 com.xunhong.erp.turbo.biz.domain.gateway.ProductGateway;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@ -14,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductDestroyCmdExe { public class ProductDestroyCmdExe {
private final ProductGateway productGateway; private final ProductGateway productGateway;
public void execute(ProductDestroyCmd productDestroyCmd) { public void execute(ProductDestroyCmd productDestroyCmd) {
productGateway.destroy(productDestroyCmd); productGateway.destroy(productDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductUpdateCmdExe { public class ProductUpdateCmdExe {
private final ProductAssembler productAssembler; private final ProductAssembler productAssembler;
private final ProductGateway productGateway; private final ProductGateway productGateway;
public ProductVO execute(ProductUpdateCmd productUpdateCmd) { public ProductVO execute(ProductUpdateCmd productUpdateCmd) {
Product product = productGateway.update(productUpdateCmd); Product product = productGateway.update(productUpdateCmd);
return productAssembler.toProductVO(product); return productAssembler.toProductVO(product);
} }
} }

View File

@ -16,11 +16,11 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationCompleteCmdExe { public class ReconciliationCompleteCmdExe {
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
public ReconciliationVO execute(ReconciliationCompleteCmd reconciliationCompleteCmd) { public ReconciliationVO execute(ReconciliationCompleteCmd reconciliationCompleteCmd) {
Reconciliation reconciliation = reconciliationGateway.complete(reconciliationCompleteCmd); Reconciliation reconciliation = reconciliationGateway.complete(reconciliationCompleteCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation); return reconciliationAssembler.toReconciliationVO(reconciliation);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationCreateCmdExe { public class ReconciliationCreateCmdExe {
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationCreateCmd reconciliationCreateCmd) { public ReconciliationVO execute(ReconciliationCreateCmd reconciliationCreateCmd) {
Reconciliation reconciliation = reconciliationGateway.save(reconciliationCreateCmd); Reconciliation reconciliation = reconciliationGateway.save(reconciliationCreateCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation); return reconciliationAssembler.toReconciliationVO(reconciliation);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationDestroyCmdExe { public class ReconciliationDestroyCmdExe {
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
public void execute(ReconciliationDestroyCmd reconciliationDestroyCmd) { public void execute(ReconciliationDestroyCmd reconciliationDestroyCmd) {
reconciliationGateway.destroy(reconciliationDestroyCmd); reconciliationGateway.destroy(reconciliationDestroyCmd);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceCreateCmdExe { public class ReconciliationInvoiceCreateCmdExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler; private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) { public ReconciliationInvoiceVO execute(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.save(reconciliationInvoiceCreateCmd); ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.save(reconciliationInvoiceCreateCmd);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice); return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceDestroyCmdExe { public class ReconciliationInvoiceDestroyCmdExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public void execute(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) { public void execute(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
reconciliationInvoiceGateway.destroy(reconciliationInvoiceDestroyCmd); reconciliationInvoiceGateway.destroy(reconciliationInvoiceDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceUpdateCmdExe { public class ReconciliationInvoiceUpdateCmdExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler; private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) { public ReconciliationInvoiceVO execute(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.update(reconciliationInvoiceUpdateCmd); ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.update(reconciliationInvoiceUpdateCmd);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice); return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentCreateCmdExe { public class ReconciliationPaymentCreateCmdExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler; private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) { public ReconciliationPaymentVO execute(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.save(reconciliationPaymentCreateCmd); ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.save(reconciliationPaymentCreateCmd);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment); return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentDestroyCmdExe { public class ReconciliationPaymentDestroyCmdExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public void execute(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) { public void execute(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
reconciliationPaymentGateway.destroy(reconciliationPaymentDestroyCmd); reconciliationPaymentGateway.destroy(reconciliationPaymentDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentUpdateCmdExe { public class ReconciliationPaymentUpdateCmdExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler; private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) { public ReconciliationPaymentVO execute(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.update(reconciliationPaymentUpdateCmd); ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.update(reconciliationPaymentUpdateCmd);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment); return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationUpdateCmdExe { public class ReconciliationUpdateCmdExe {
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationUpdateCmd reconciliationUpdateCmd) { public ReconciliationVO execute(ReconciliationUpdateCmd reconciliationUpdateCmd) {
Reconciliation reconciliation = reconciliationGateway.update(reconciliationUpdateCmd); Reconciliation reconciliation = reconciliationGateway.update(reconciliationUpdateCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation); return reconciliationAssembler.toReconciliationVO(reconciliation);
} }
} }

View File

@ -13,10 +13,10 @@ import org.springframework.stereotype.Component;
@Component @Component
@RequiredArgsConstructor @RequiredArgsConstructor
public class SupplierInvoiceDestroyCmdExe { public class SupplierInvoiceDestroyCmdExe {
private final SupplierInvoiceGateway supplierInvoiceGateway; private final SupplierInvoiceGateway supplierInvoiceGateway;
public void execute(SupplierInvoiceDestroyCmd supplierInvoiceDestroyCmd) { public void execute(SupplierInvoiceDestroyCmd supplierInvoiceDestroyCmd) {
supplierInvoiceGateway.destroy(supplierInvoiceDestroyCmd); supplierInvoiceGateway.destroy(supplierInvoiceDestroyCmd);
} }
} }

View File

@ -17,11 +17,11 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class SupplierInvoiceUpdateCmdExe { public class SupplierInvoiceUpdateCmdExe {
private final SupplierInvoiceAssembler supplierInvoiceAssembler; private final SupplierInvoiceAssembler supplierInvoiceAssembler;
private final SupplierInvoiceGateway supplierInvoiceGateway; private final SupplierInvoiceGateway supplierInvoiceGateway;
public SupplierInvoiceVO execute(SupplierInvoiceUpdateCmd invoiceUpdateCmd) { public SupplierInvoiceVO execute(SupplierInvoiceUpdateCmd invoiceUpdateCmd) {
SupplierInvoice supplierInvoice = supplierInvoiceGateway.update(invoiceUpdateCmd); SupplierInvoice supplierInvoice = supplierInvoiceGateway.update(invoiceUpdateCmd);
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice); return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class AuditPageQryExe { public class AuditPageQryExe {
private final AuditGateway auditGateway; private final AuditGateway auditGateway;
private final AuditAssembler auditAssembler; private final AuditAssembler auditAssembler;
public IPage<AuditVO> execute(AuditPageQry auditPageQry) { public IPage<AuditVO> execute(AuditPageQry auditPageQry) {
IPage<Audit> page = auditGateway.page(auditPageQry); IPage<Audit> page = auditGateway.page(auditPageQry);
return page.convert(auditAssembler::toAuditVO); return page.convert(auditAssembler::toAuditVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class AuditShowQryExe { public class AuditShowQryExe {
private final AuditAssembler auditAssembler; private final AuditAssembler auditAssembler;
private final AuditGateway auditGateway; private final AuditGateway auditGateway;
public AuditVO execute(AuditShowQry auditShowQry) { public AuditVO execute(AuditShowQry auditShowQry) {
Audit audit = auditGateway.show(auditShowQry); Audit audit = auditGateway.show(auditShowQry);
return auditAssembler.toAuditVO(audit); return auditAssembler.toAuditVO(audit);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecListQryExe { public class BoxSpecListQryExe {
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
private final BoxSpecAssembler boxSpecAssembler; private final BoxSpecAssembler boxSpecAssembler;
public List<BoxSpecVO> execute(BoxSpecListQry boxSpecListQry) { public List<BoxSpecVO> execute(BoxSpecListQry boxSpecListQry) {
List<BoxSpec> boxSpecList = boxSpecGateway.list(boxSpecListQry); List<BoxSpec> boxSpecList = boxSpecGateway.list(boxSpecListQry);
return boxSpecList.stream().map(boxSpecAssembler::toBoxSpecVO).toList(); return boxSpecList.stream().map(boxSpecAssembler::toBoxSpecVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecPageQryExe { public class BoxSpecPageQryExe {
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
private final BoxSpecAssembler boxSpecAssembler; private final BoxSpecAssembler boxSpecAssembler;
public IPage<BoxSpecVO> execute(BoxSpecPageQry boxSpecPageQry) { public IPage<BoxSpecVO> execute(BoxSpecPageQry boxSpecPageQry) {
IPage<BoxSpec> page = boxSpecGateway.page(boxSpecPageQry); IPage<BoxSpec> page = boxSpecGateway.page(boxSpecPageQry);
return page.convert(boxSpecAssembler::toBoxSpecVO); return page.convert(boxSpecAssembler::toBoxSpecVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecShowQryExe { public class BoxSpecShowQryExe {
private final BoxSpecAssembler boxSpecAssembler; private final BoxSpecAssembler boxSpecAssembler;
private final BoxSpecGateway boxSpecGateway; private final BoxSpecGateway boxSpecGateway;
public BoxSpecVO execute(BoxSpecShowQry boxSpecShowQry) { public BoxSpecVO execute(BoxSpecShowQry boxSpecShowQry) {
BoxSpec boxSpec = boxSpecGateway.show(boxSpecShowQry); BoxSpec boxSpec = boxSpecGateway.show(boxSpecShowQry);
return boxSpecAssembler.toBoxSpecVO(boxSpec); return boxSpecAssembler.toBoxSpecVO(boxSpec);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostListQryExe { public class CostListQryExe {
private final CostGateway costGateway; private final CostGateway costGateway;
private final CostAssembler costAssembler; private final CostAssembler costAssembler;
public List<CostVO> execute(CostListQry costListQry) { public List<CostVO> execute(CostListQry costListQry) {
List<Cost> costList = costGateway.list(costListQry); List<Cost> costList = costGateway.list(costListQry);
return costList.stream().map(costAssembler::toCostVO).toList(); return costList.stream().map(costAssembler::toCostVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostPageQryExe { public class CostPageQryExe {
private final CostGateway costGateway; private final CostGateway costGateway;
private final CostAssembler costAssembler; private final CostAssembler costAssembler;
public IPage<CostVO> execute(CostPageQry costPageQry) { public IPage<CostVO> execute(CostPageQry costPageQry) {
IPage<Cost> page = costGateway.page(costPageQry); IPage<Cost> page = costGateway.page(costPageQry);
return page.convert(costAssembler::toCostVO); return page.convert(costAssembler::toCostVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostShowQryExe { public class CostShowQryExe {
private final CostAssembler costAssembler; private final CostAssembler costAssembler;
private final CostGateway costGateway; private final CostGateway costGateway;
public CostVO execute(CostShowQry costShowQry) { public CostVO execute(CostShowQry costShowQry) {
Cost cost = costGateway.show(costShowQry); Cost cost = costGateway.show(costShowQry);
return costAssembler.toCostVO(cost); return costAssembler.toCostVO(cost);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordListQryExe { public class DealerAccountRecordListQryExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
private final DealerAccountRecordAssembler dealerAccountRecordAssembler; private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
public List<DealerAccountRecordVO> execute(DealerAccountRecordListQry dealerAccountRecordListQry) { public List<DealerAccountRecordVO> execute(DealerAccountRecordListQry dealerAccountRecordListQry) {
List<DealerAccountRecord> dealerAccountRecordList = dealerAccountRecordGateway.list(dealerAccountRecordListQry); List<DealerAccountRecord> dealerAccountRecordList = dealerAccountRecordGateway.list(dealerAccountRecordListQry);
return dealerAccountRecordList.stream().map(dealerAccountRecordAssembler::toDealerAccountRecordVO).toList(); return dealerAccountRecordList.stream().map(dealerAccountRecordAssembler::toDealerAccountRecordVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordPageQryExe { public class DealerAccountRecordPageQryExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
private final DealerAccountRecordAssembler dealerAccountRecordAssembler; private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
public IPage<DealerAccountRecordVO> execute(DealerAccountRecordPageQry dealerAccountRecordPageQry) { public IPage<DealerAccountRecordVO> execute(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
IPage<DealerAccountRecord> page = dealerAccountRecordGateway.page(dealerAccountRecordPageQry); IPage<DealerAccountRecord> page = dealerAccountRecordGateway.page(dealerAccountRecordPageQry);
return page.convert(dealerAccountRecordAssembler::toDealerAccountRecordVO); return page.convert(dealerAccountRecordAssembler::toDealerAccountRecordVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordShowQryExe { public class DealerAccountRecordShowQryExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler; private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway; private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordShowQry dealerAccountRecordShowQry) { public DealerAccountRecordVO execute(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.show(dealerAccountRecordShowQry); DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.show(dealerAccountRecordShowQry);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord); return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExpenseRecordListQryExe { public class ExpenseRecordListQryExe {
private final ExpenseRecordGateway expenseRecordGateway; private final ExpenseRecordGateway expenseRecordGateway;
private final ExpenseRecordAssembler expenseRecordAssembler; private final ExpenseRecordAssembler expenseRecordAssembler;
public List<ExpenseRecordVO> execute(ExpenseRecordListQry expenseRecordListQry) { public List<ExpenseRecordVO> execute(ExpenseRecordListQry expenseRecordListQry) {
List<ExpenseRecord> expenseRecordList = expenseRecordGateway.list(expenseRecordListQry); List<ExpenseRecord> expenseRecordList = expenseRecordGateway.list(expenseRecordListQry);
return expenseRecordList.stream().map(expenseRecordAssembler::toExpenseRecordVO).toList(); return expenseRecordList.stream().map(expenseRecordAssembler::toExpenseRecordVO).toList();
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExpenseRecordShowQryExe { public class ExpenseRecordShowQryExe {
private final ExpenseRecordAssembler expenseRecordAssembler; private final ExpenseRecordAssembler expenseRecordAssembler;
private final ExpenseRecordGateway expenseRecordGateway; private final ExpenseRecordGateway expenseRecordGateway;
public ExpenseRecordVO execute(ExpenseRecordShowQry expenseRecordShowQry) { public ExpenseRecordVO execute(ExpenseRecordShowQry expenseRecordShowQry) {
ExpenseRecord expenseRecord = expenseRecordGateway.show(expenseRecordShowQry); ExpenseRecord expenseRecord = expenseRecordGateway.show(expenseRecordShowQry);
return expenseRecordAssembler.toExpenseRecordVO(expenseRecord); return expenseRecordAssembler.toExpenseRecordVO(expenseRecord);
} }
} }

View File

@ -14,9 +14,9 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class LastVehicleNoQryExe { public class LastVehicleNoQryExe {
private final OrderGateway orderGateway; private final OrderGateway orderGateway;
public String execute(LastVehicleNoQry lastVehicleNoQry) { public String execute(LastVehicleNoQry lastVehicleNoQry) {
return orderGateway.getLastVehicleNo(lastVehicleNoQry); return orderGateway.getLastVehicleNo(lastVehicleNoQry);
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class OrderCostPageQryExe { public class OrderCostPageQryExe {
private final OrderCostGateway orderCostGateway; private final OrderCostGateway orderCostGateway;
private final OrderCostAssembler orderCostAssembler; private final OrderCostAssembler orderCostAssembler;
public IPage<OrderCostVO> execute(OrderCostPageQry orderCostPageQry) { public IPage<OrderCostVO> execute(OrderCostPageQry orderCostPageQry) {
IPage<OrderCost> page = orderCostGateway.page(orderCostPageQry); IPage<OrderCost> page = orderCostGateway.page(orderCostPageQry);
return page.convert(orderCostAssembler::toOrderCostVO); return page.convert(orderCostAssembler::toOrderCostVO);
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class OrderRebatePageQryExe { public class OrderRebatePageQryExe {
private final OrderRebateGateway orderRebateGateway; private final OrderRebateGateway orderRebateGateway;
private final OrderRebateAssembler orderRebateAssembler; private final OrderRebateAssembler orderRebateAssembler;
public IPage<OrderRebateVO> execute(OrderRebatePageQry orderRebatePageQry) { public IPage<OrderRebateVO> execute(OrderRebatePageQry orderRebatePageQry) {
IPage<OrderRebate> page = orderRebateGateway.page(orderRebatePageQry); IPage<OrderRebate> page = orderRebateGateway.page(orderRebatePageQry);
return page.convert(orderRebateAssembler::toOrderRebateVO); return page.convert(orderRebateAssembler::toOrderRebateVO);
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class OrderSupplierPageQryExe { public class OrderSupplierPageQryExe {
private final OrderSupplierGateway orderSupplierGateway; private final OrderSupplierGateway orderSupplierGateway;
private final OrderSupplierAssembler orderSupplierAssembler; private final OrderSupplierAssembler orderSupplierAssembler;
public IPage<OrderSupplierVO> execute(OrderSupplierPageQry orderSupplierPageQry) { public IPage<OrderSupplierVO> execute(OrderSupplierPageQry orderSupplierPageQry) {
IPage<OrderSupplier> page = orderSupplierGateway.page(orderSupplierPageQry); IPage<OrderSupplier> page = orderSupplierGateway.page(orderSupplierPageQry);
return page.convert(orderSupplierAssembler::toOrderSupplierVO); return page.convert(orderSupplierAssembler::toOrderSupplierVO);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordListQryExe { public class PaymentRecordListQryExe {
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
private final PaymentRecordAssembler paymentRecordAssembler; private final PaymentRecordAssembler paymentRecordAssembler;
public List<PaymentRecordVO> execute(PaymentRecordListQry paymentRecordListQry) { public List<PaymentRecordVO> execute(PaymentRecordListQry paymentRecordListQry) {
List<PaymentRecord> paymentRecordList = paymentRecordGateway.list(paymentRecordListQry); List<PaymentRecord> paymentRecordList = paymentRecordGateway.list(paymentRecordListQry);
return paymentRecordList.stream().map(paymentRecordAssembler::toPaymentRecordVO).toList(); return paymentRecordList.stream().map(paymentRecordAssembler::toPaymentRecordVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordPageQryExe { public class PaymentRecordPageQryExe {
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
private final PaymentRecordAssembler paymentRecordAssembler; private final PaymentRecordAssembler paymentRecordAssembler;
public IPage<PaymentRecordVO> execute(PaymentRecordPageQry paymentRecordPageQry) { public IPage<PaymentRecordVO> execute(PaymentRecordPageQry paymentRecordPageQry) {
IPage<PaymentRecord> page = paymentRecordGateway.page(paymentRecordPageQry); IPage<PaymentRecord> page = paymentRecordGateway.page(paymentRecordPageQry);
return page.convert(paymentRecordAssembler::toPaymentRecordVO); return page.convert(paymentRecordAssembler::toPaymentRecordVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordShowQryExe { public class PaymentRecordShowQryExe {
private final PaymentRecordAssembler paymentRecordAssembler; private final PaymentRecordAssembler paymentRecordAssembler;
private final PaymentRecordGateway paymentRecordGateway; private final PaymentRecordGateway paymentRecordGateway;
public PaymentRecordVO execute(PaymentRecordShowQry paymentRecordShowQry) { public PaymentRecordVO execute(PaymentRecordShowQry paymentRecordShowQry) {
PaymentRecord paymentRecord = paymentRecordGateway.show(paymentRecordShowQry); PaymentRecord paymentRecord = paymentRecordGateway.show(paymentRecordShowQry);
return paymentRecordAssembler.toPaymentRecordVO(paymentRecord); return paymentRecordAssembler.toPaymentRecordVO(paymentRecord);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskListQryExe { public class PaymentTaskListQryExe {
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
public List<PaymentTaskVO> execute(PaymentTaskListQry paymentTaskListQry) { public List<PaymentTaskVO> execute(PaymentTaskListQry paymentTaskListQry) {
List<PaymentTask> paymentTaskList = paymentTaskGateway.list(paymentTaskListQry); List<PaymentTask> paymentTaskList = paymentTaskGateway.list(paymentTaskListQry);
return paymentTaskList.stream().map(paymentTaskAssembler::toPaymentTaskVO).toList(); return paymentTaskList.stream().map(paymentTaskAssembler::toPaymentTaskVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskPageQryExe { public class PaymentTaskPageQryExe {
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
public IPage<PaymentTaskVO> execute(PaymentTaskPageQry paymentTaskPageQry) { public IPage<PaymentTaskVO> execute(PaymentTaskPageQry paymentTaskPageQry) {
IPage<PaymentTask> page = paymentTaskGateway.page(paymentTaskPageQry); IPage<PaymentTask> page = paymentTaskGateway.page(paymentTaskPageQry);
return page.convert(paymentTaskAssembler::toPaymentTaskVO); return page.convert(paymentTaskAssembler::toPaymentTaskVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskShowQryExe { public class PaymentTaskShowQryExe {
private final PaymentTaskAssembler paymentTaskAssembler; private final PaymentTaskAssembler paymentTaskAssembler;
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
public PaymentTaskVO execute(PaymentTaskShowQry paymentTaskShowQry) { public PaymentTaskVO execute(PaymentTaskShowQry paymentTaskShowQry) {
PaymentTask paymentTask = paymentTaskGateway.show(paymentTaskShowQry); PaymentTask paymentTask = paymentTaskGateway.show(paymentTaskShowQry);
return paymentTaskAssembler.toPaymentTaskVO(paymentTask); return paymentTaskAssembler.toPaymentTaskVO(paymentTask);
} }
} }

View File

@ -15,9 +15,9 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskStatisticsQryExe { public class PaymentTaskStatisticsQryExe {
private final PaymentTaskGateway paymentTaskGateway; private final PaymentTaskGateway paymentTaskGateway;
public PaymentTaskStatisticsVO execute(PaymentTaskStatisticsQry statisticsQry) { public PaymentTaskStatisticsVO execute(PaymentTaskStatisticsQry statisticsQry) {
return paymentTaskGateway.statistics(statisticsQry); return paymentTaskGateway.statistics(statisticsQry);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductListQryExe { public class ProductListQryExe {
private final ProductGateway productGateway; private final ProductGateway productGateway;
private final ProductAssembler productAssembler; private final ProductAssembler productAssembler;
public List<ProductVO> execute(ProductListQry productListQry) { public List<ProductVO> execute(ProductListQry productListQry) {
List<Product> productList = productGateway.list(productListQry); List<Product> productList = productGateway.list(productListQry);
return productList.stream().map(productAssembler::toProductVO).toList(); return productList.stream().map(productAssembler::toProductVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductPageQryExe { public class ProductPageQryExe {
private final ProductGateway productGateway; private final ProductGateway productGateway;
private final ProductAssembler productAssembler; private final ProductAssembler productAssembler;
public IPage<ProductVO> execute(ProductPageQry productPageQry) { public IPage<ProductVO> execute(ProductPageQry productPageQry) {
IPage<Product> page = productGateway.page(productPageQry); IPage<Product> page = productGateway.page(productPageQry);
return page.convert(productAssembler::toProductVO); return page.convert(productAssembler::toProductVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductShowQryExe { public class ProductShowQryExe {
private final ProductAssembler productAssembler; private final ProductAssembler productAssembler;
private final ProductGateway productGateway; private final ProductGateway productGateway;
public ProductVO execute(ProductShowQry productShowQry) { public ProductVO execute(ProductShowQry productShowQry) {
Product product = productGateway.show(productShowQry); Product product = productGateway.show(productShowQry);
return productAssembler.toProductVO(product); return productAssembler.toProductVO(product);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceListQryExe { public class ReconciliationInvoiceListQryExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler; private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
public List<ReconciliationInvoiceVO> execute(ReconciliationInvoiceListQry reconciliationInvoiceListQry) { public List<ReconciliationInvoiceVO> execute(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
List<ReconciliationInvoice> reconciliationInvoiceList = reconciliationInvoiceGateway.list(reconciliationInvoiceListQry); List<ReconciliationInvoice> reconciliationInvoiceList = reconciliationInvoiceGateway.list(reconciliationInvoiceListQry);
return reconciliationInvoiceList.stream().map(reconciliationInvoiceAssembler::toReconciliationInvoiceVO).toList(); return reconciliationInvoiceList.stream().map(reconciliationInvoiceAssembler::toReconciliationInvoiceVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoicePageQryExe { public class ReconciliationInvoicePageQryExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler; private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
public IPage<ReconciliationInvoiceVO> execute(ReconciliationInvoicePageQry reconciliationInvoicePageQry) { public IPage<ReconciliationInvoiceVO> execute(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
IPage<ReconciliationInvoice> page = reconciliationInvoiceGateway.page(reconciliationInvoicePageQry); IPage<ReconciliationInvoice> page = reconciliationInvoiceGateway.page(reconciliationInvoicePageQry);
return page.convert(reconciliationInvoiceAssembler::toReconciliationInvoiceVO); return page.convert(reconciliationInvoiceAssembler::toReconciliationInvoiceVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceShowQryExe { public class ReconciliationInvoiceShowQryExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler; private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway; private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) { public ReconciliationInvoiceVO execute(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.show(reconciliationInvoiceShowQry); ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.show(reconciliationInvoiceShowQry);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice); return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationListQryExe { public class ReconciliationListQryExe {
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
public List<ReconciliationVO> execute(ReconciliationListQry reconciliationListQry) { public List<ReconciliationVO> execute(ReconciliationListQry reconciliationListQry) {
List<Reconciliation> reconciliationList = reconciliationGateway.list(reconciliationListQry); List<Reconciliation> reconciliationList = reconciliationGateway.list(reconciliationListQry);
return reconciliationList.stream().map(reconciliationAssembler::toReconciliationVO).toList(); return reconciliationList.stream().map(reconciliationAssembler::toReconciliationVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPageQryExe { public class ReconciliationPageQryExe {
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
public IPage<ReconciliationVO> execute(ReconciliationPageQry reconciliationPageQry) { public IPage<ReconciliationVO> execute(ReconciliationPageQry reconciliationPageQry) {
IPage<Reconciliation> page = reconciliationGateway.page(reconciliationPageQry); IPage<Reconciliation> page = reconciliationGateway.page(reconciliationPageQry);
return page.convert(reconciliationAssembler::toReconciliationVO); return page.convert(reconciliationAssembler::toReconciliationVO);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentListQryExe { public class ReconciliationPaymentListQryExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler; private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
public List<ReconciliationPaymentVO> execute(ReconciliationPaymentListQry reconciliationPaymentListQry) { public List<ReconciliationPaymentVO> execute(ReconciliationPaymentListQry reconciliationPaymentListQry) {
List<ReconciliationPayment> reconciliationPaymentList = reconciliationPaymentGateway.list(reconciliationPaymentListQry); List<ReconciliationPayment> reconciliationPaymentList = reconciliationPaymentGateway.list(reconciliationPaymentListQry);
return reconciliationPaymentList.stream().map(reconciliationPaymentAssembler::toReconciliationPaymentVO).toList(); return reconciliationPaymentList.stream().map(reconciliationPaymentAssembler::toReconciliationPaymentVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentPageQryExe { public class ReconciliationPaymentPageQryExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler; private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
public IPage<ReconciliationPaymentVO> execute(ReconciliationPaymentPageQry reconciliationPaymentPageQry) { public IPage<ReconciliationPaymentVO> execute(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
IPage<ReconciliationPayment> page = reconciliationPaymentGateway.page(reconciliationPaymentPageQry); IPage<ReconciliationPayment> page = reconciliationPaymentGateway.page(reconciliationPaymentPageQry);
return page.convert(reconciliationPaymentAssembler::toReconciliationPaymentVO); return page.convert(reconciliationPaymentAssembler::toReconciliationPaymentVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentShowQryExe { public class ReconciliationPaymentShowQryExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler; private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway; private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentShowQry reconciliationPaymentShowQry) { public ReconciliationPaymentVO execute(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.show(reconciliationPaymentShowQry); ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.show(reconciliationPaymentShowQry);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment); return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationShowQryExe { public class ReconciliationShowQryExe {
private final ReconciliationAssembler reconciliationAssembler; private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway; private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationShowQry reconciliationShowQry) { public ReconciliationVO execute(ReconciliationShowQry reconciliationShowQry) {
Reconciliation reconciliation = reconciliationGateway.show(reconciliationShowQry); Reconciliation reconciliation = reconciliationGateway.show(reconciliationShowQry);
return reconciliationAssembler.toReconciliationVO(reconciliation); return reconciliationAssembler.toReconciliationVO(reconciliation);
} }
} }

View File

@ -19,12 +19,12 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class SupplierInvoiceListQryExe { public class SupplierInvoiceListQryExe {
private final SupplierInvoiceGateway supplierInvoiceGateway; private final SupplierInvoiceGateway supplierInvoiceGateway;
private final SupplierInvoiceAssembler supplierInvoiceAssembler; private final SupplierInvoiceAssembler supplierInvoiceAssembler;
public List<SupplierInvoiceVO> execute(SupplierInvoiceListQry supplierInvoiceListQry) { public List<SupplierInvoiceVO> execute(SupplierInvoiceListQry supplierInvoiceListQry) {
List<SupplierInvoice> supplierInvoiceList = supplierInvoiceGateway.list(supplierInvoiceListQry); List<SupplierInvoice> supplierInvoiceList = supplierInvoiceGateway.list(supplierInvoiceListQry);
return supplierInvoiceList.stream().map(supplierInvoiceAssembler::toInvoiceVO).toList(); return supplierInvoiceList.stream().map(supplierInvoiceAssembler::toInvoiceVO).toList();
} }
} }

View File

@ -18,12 +18,12 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class SupplierInvoicePageQryExe { public class SupplierInvoicePageQryExe {
private final SupplierInvoiceGateway supplierInvoiceGateway; private final SupplierInvoiceGateway supplierInvoiceGateway;
private final SupplierInvoiceAssembler supplierInvoiceAssembler; private final SupplierInvoiceAssembler supplierInvoiceAssembler;
public IPage<SupplierInvoiceVO> execute(SupplierInvoicePageQry supplierInvoicePageQry) { public IPage<SupplierInvoiceVO> execute(SupplierInvoicePageQry supplierInvoicePageQry) {
IPage<SupplierInvoice> page = supplierInvoiceGateway.page(supplierInvoicePageQry); IPage<SupplierInvoice> page = supplierInvoiceGateway.page(supplierInvoicePageQry);
return page.convert(supplierInvoiceAssembler::toInvoiceVO); return page.convert(supplierInvoiceAssembler::toInvoiceVO);
} }
} }

View File

@ -17,13 +17,13 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor @RequiredArgsConstructor
public class SupplierInvoiceShowQryExe { public class SupplierInvoiceShowQryExe {
private final SupplierInvoiceAssembler supplierInvoiceAssembler; private final SupplierInvoiceAssembler supplierInvoiceAssembler;
private final SupplierInvoiceGateway supplierInvoiceGateway; private final SupplierInvoiceGateway supplierInvoiceGateway;
public SupplierInvoiceVO execute(SupplierInvoiceShowQry supplierInvoiceShowQry) { public SupplierInvoiceVO execute(SupplierInvoiceShowQry supplierInvoiceShowQry) {
SupplierInvoice supplierInvoice = supplierInvoiceGateway.show(supplierInvoiceShowQry); SupplierInvoice supplierInvoice = supplierInvoiceGateway.show(supplierInvoiceShowQry);
return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice); return supplierInvoiceAssembler.toInvoiceVO(supplierInvoice);
} }
} }

View File

@ -23,23 +23,23 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor @RequiredArgsConstructor
public class AuditServiceImpl implements AuditServiceI { public class AuditServiceImpl implements AuditServiceI {
private final AuditUpdateCmdExe auditUpdateCmdExe; private final AuditUpdateCmdExe auditUpdateCmdExe;
private final AuditPageQryExe auditPageQryExe; private final AuditPageQryExe auditPageQryExe;
private final AuditShowQryExe auditShowQryExe; private final AuditShowQryExe auditShowQryExe;
@Override @Override
public PageDTO<AuditVO> page(AuditPageQry auditPageQry) { public PageDTO<AuditVO> page(AuditPageQry auditPageQry) {
return PageDTO.of(auditPageQryExe.execute(auditPageQry)); return PageDTO.of(auditPageQryExe.execute(auditPageQry));
} }
@Override @Override
public AuditVO update(AuditUpdateCmd auditUpdateCmd) { public AuditVO update(AuditUpdateCmd auditUpdateCmd) {
return auditUpdateCmdExe.execute(auditUpdateCmd); return auditUpdateCmdExe.execute(auditUpdateCmd);
} }
@Override @Override
public AuditVO show(AuditShowQry auditShowQry) { public AuditVO show(AuditShowQry auditShowQry) {
return auditShowQryExe.execute(auditShowQry); return auditShowQryExe.execute(auditShowQry);
} }
} }

View File

@ -31,41 +31,41 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class BoxSpecServiceImpl implements BoxSpecServiceI { public class BoxSpecServiceImpl implements BoxSpecServiceI {
private final BoxSpecCreateCmdExe boxSpecCreateCmdExe; private final BoxSpecCreateCmdExe boxSpecCreateCmdExe;
private final BoxSpecUpdateCmdExe boxSpecUpdateCmdExe; private final BoxSpecUpdateCmdExe boxSpecUpdateCmdExe;
private final BoxSpecPageQryExe boxSpecPageQryExe; private final BoxSpecPageQryExe boxSpecPageQryExe;
private final BoxSpecListQryExe boxSpecListQryExe; private final BoxSpecListQryExe boxSpecListQryExe;
private final BoxSpecShowQryExe boxSpecShowQryExe; private final BoxSpecShowQryExe boxSpecShowQryExe;
private final BoxSpecDestroyCmdExe boxSpecDestroyCmdExe; private final BoxSpecDestroyCmdExe boxSpecDestroyCmdExe;
@Override @Override
public BoxSpecVO create(BoxSpecCreateCmd boxSpecCreateCmd) { public BoxSpecVO create(BoxSpecCreateCmd boxSpecCreateCmd) {
return boxSpecCreateCmdExe.execute(boxSpecCreateCmd); return boxSpecCreateCmdExe.execute(boxSpecCreateCmd);
} }
@Override @Override
public PageDTO<BoxSpecVO> page(BoxSpecPageQry boxSpecPageQry) { public PageDTO<BoxSpecVO> page(BoxSpecPageQry boxSpecPageQry) {
return PageDTO.of(boxSpecPageQryExe.execute(boxSpecPageQry)); return PageDTO.of(boxSpecPageQryExe.execute(boxSpecPageQry));
} }
@Override @Override
public List<BoxSpecVO> list(BoxSpecListQry boxSpecListQry) { public List<BoxSpecVO> list(BoxSpecListQry boxSpecListQry) {
return boxSpecListQryExe.execute(boxSpecListQry); return boxSpecListQryExe.execute(boxSpecListQry);
} }
@Override @Override
public BoxSpecVO update(BoxSpecUpdateCmd boxSpecUpdateCmd) { public BoxSpecVO update(BoxSpecUpdateCmd boxSpecUpdateCmd) {
return boxSpecUpdateCmdExe.execute(boxSpecUpdateCmd); return boxSpecUpdateCmdExe.execute(boxSpecUpdateCmd);
} }
@Override @Override
public BoxSpecVO show(BoxSpecShowQry boxSpecShowQry) { public BoxSpecVO show(BoxSpecShowQry boxSpecShowQry) {
return boxSpecShowQryExe.execute(boxSpecShowQry); return boxSpecShowQryExe.execute(boxSpecShowQry);
} }
@Override @Override
public void destroy(BoxSpecDestroyCmd boxSpecDestroyCmd) { public void destroy(BoxSpecDestroyCmd boxSpecDestroyCmd) {
boxSpecDestroyCmdExe.execute(boxSpecDestroyCmd); boxSpecDestroyCmdExe.execute(boxSpecDestroyCmd);
} }
} }

View File

@ -33,43 +33,43 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class CostServiceImpl implements CostServiceI { public class CostServiceImpl implements CostServiceI {
private final CostCreateCmdExe costCreateCmdExe; private final CostCreateCmdExe costCreateCmdExe;
private final CostUpdateCmdExe costUpdateCmdExe; private final CostUpdateCmdExe costUpdateCmdExe;
private final CostPageQryExe costPageQryExe; private final CostPageQryExe costPageQryExe;
private final CostListQryExe costListQryExe; private final CostListQryExe costListQryExe;
private final CostShowQryExe costShowQryExe; private final CostShowQryExe costShowQryExe;
private final CostDestroyCmdExe costDestroyCmdExe; private final CostDestroyCmdExe costDestroyCmdExe;
private final CostDragCmdExe costDragCmdExe; private final CostDragCmdExe costDragCmdExe;
@Override @Override
public CostVO create(CostCreateCmd costCreateCmd) { public CostVO create(CostCreateCmd costCreateCmd) {
return costCreateCmdExe.execute(costCreateCmd); return costCreateCmdExe.execute(costCreateCmd);
} }
@Override @Override
public PageDTO<CostVO> page(CostPageQry costPageQry) { public PageDTO<CostVO> page(CostPageQry costPageQry) {
return PageDTO.of(costPageQryExe.execute(costPageQry)); return PageDTO.of(costPageQryExe.execute(costPageQry));
} }
@Override @Override
public List<CostVO> list(CostListQry costListQry) { public List<CostVO> list(CostListQry costListQry) {
return costListQryExe.execute(costListQry); return costListQryExe.execute(costListQry);
} }
@Override @Override
public CostVO update(CostUpdateCmd costUpdateCmd) { public CostVO update(CostUpdateCmd costUpdateCmd) {
return costUpdateCmdExe.execute(costUpdateCmd); return costUpdateCmdExe.execute(costUpdateCmd);
} }
@Override @Override
public CostVO show(CostShowQry costShowQry) { public CostVO show(CostShowQry costShowQry) {
return costShowQryExe.execute(costShowQry); return costShowQryExe.execute(costShowQry);
} }
@Override @Override
public void destroy(CostDestroyCmd costDestroyCmd) { public void destroy(CostDestroyCmd costDestroyCmd) {
costDestroyCmdExe.execute(costDestroyCmd); costDestroyCmdExe.execute(costDestroyCmd);
} }
@Override @Override
public void drag(CostDragCmd costDragCmd) { public void drag(CostDragCmd costDragCmd) {

View File

@ -31,41 +31,41 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class DealerAccountRecordServiceImpl implements DealerAccountRecordServiceI { public class DealerAccountRecordServiceImpl implements DealerAccountRecordServiceI {
private final DealerAccountRecordCreateCmdExe dealerAccountRecordCreateCmdExe; private final DealerAccountRecordCreateCmdExe dealerAccountRecordCreateCmdExe;
private final DealerAccountRecordUpdateCmdExe dealerAccountRecordUpdateCmdExe; private final DealerAccountRecordUpdateCmdExe dealerAccountRecordUpdateCmdExe;
private final DealerAccountRecordPageQryExe dealerAccountRecordPageQryExe; private final DealerAccountRecordPageQryExe dealerAccountRecordPageQryExe;
private final DealerAccountRecordListQryExe dealerAccountRecordListQryExe; private final DealerAccountRecordListQryExe dealerAccountRecordListQryExe;
private final DealerAccountRecordShowQryExe dealerAccountRecordShowQryExe; private final DealerAccountRecordShowQryExe dealerAccountRecordShowQryExe;
private final DealerAccountRecordDestroyCmdExe dealerAccountRecordDestroyCmdExe; private final DealerAccountRecordDestroyCmdExe dealerAccountRecordDestroyCmdExe;
@Override @Override
public DealerAccountRecordVO create(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) { public DealerAccountRecordVO create(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
return dealerAccountRecordCreateCmdExe.execute(dealerAccountRecordCreateCmd); return dealerAccountRecordCreateCmdExe.execute(dealerAccountRecordCreateCmd);
} }
@Override @Override
public PageDTO<DealerAccountRecordVO> page(DealerAccountRecordPageQry dealerAccountRecordPageQry) { public PageDTO<DealerAccountRecordVO> page(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
return PageDTO.of(dealerAccountRecordPageQryExe.execute(dealerAccountRecordPageQry)); return PageDTO.of(dealerAccountRecordPageQryExe.execute(dealerAccountRecordPageQry));
} }
@Override @Override
public List<DealerAccountRecordVO> list(DealerAccountRecordListQry dealerAccountRecordListQry) { public List<DealerAccountRecordVO> list(DealerAccountRecordListQry dealerAccountRecordListQry) {
return dealerAccountRecordListQryExe.execute(dealerAccountRecordListQry); return dealerAccountRecordListQryExe.execute(dealerAccountRecordListQry);
} }
@Override @Override
public DealerAccountRecordVO update(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) { public DealerAccountRecordVO update(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
return dealerAccountRecordUpdateCmdExe.execute(dealerAccountRecordUpdateCmd); return dealerAccountRecordUpdateCmdExe.execute(dealerAccountRecordUpdateCmd);
} }
@Override @Override
public DealerAccountRecordVO show(DealerAccountRecordShowQry dealerAccountRecordShowQry) { public DealerAccountRecordVO show(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
return dealerAccountRecordShowQryExe.execute(dealerAccountRecordShowQry); return dealerAccountRecordShowQryExe.execute(dealerAccountRecordShowQry);
} }
@Override @Override
public void destroy(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) { public void destroy(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
dealerAccountRecordDestroyCmdExe.execute(dealerAccountRecordDestroyCmd); dealerAccountRecordDestroyCmdExe.execute(dealerAccountRecordDestroyCmd);
} }
} }

View File

@ -26,29 +26,29 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExpenseRecordServiceImpl implements ExpenseRecordServiceI { public class ExpenseRecordServiceImpl implements ExpenseRecordServiceI {
private final ExpenseRecordCreateCmdExe expenseRecordCreateCmdExe; private final ExpenseRecordCreateCmdExe expenseRecordCreateCmdExe;
private final ExpenseRecordUpdateCmdExe expenseRecordUpdateCmdExe; private final ExpenseRecordUpdateCmdExe expenseRecordUpdateCmdExe;
private final ExpenseRecordListQryExe expenseRecordListQryExe; private final ExpenseRecordListQryExe expenseRecordListQryExe;
private final ExpenseRecordShowQryExe expenseRecordShowQryExe; private final ExpenseRecordShowQryExe expenseRecordShowQryExe;
@Override @Override
public ExpenseRecordVO create(ExpenseRecordCreateCmd expenseRecordCreateCmd) { public ExpenseRecordVO create(ExpenseRecordCreateCmd expenseRecordCreateCmd) {
return expenseRecordCreateCmdExe.execute(expenseRecordCreateCmd); return expenseRecordCreateCmdExe.execute(expenseRecordCreateCmd);
} }
@Override @Override
public List<ExpenseRecordVO> list(ExpenseRecordListQry expenseRecordListQry) { public List<ExpenseRecordVO> list(ExpenseRecordListQry expenseRecordListQry) {
return expenseRecordListQryExe.execute(expenseRecordListQry); return expenseRecordListQryExe.execute(expenseRecordListQry);
} }
@Override @Override
public ExpenseRecordVO update(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) { public ExpenseRecordVO update(ExpenseRecordUpdateCmd expenseRecordUpdateCmd) {
return expenseRecordUpdateCmdExe.execute(expenseRecordUpdateCmd); return expenseRecordUpdateCmdExe.execute(expenseRecordUpdateCmd);
} }
@Override @Override
public ExpenseRecordVO show(ExpenseRecordShowQry expenseRecordShowQry) { public ExpenseRecordVO show(ExpenseRecordShowQry expenseRecordShowQry) {
return expenseRecordShowQryExe.execute(expenseRecordShowQry); return expenseRecordShowQryExe.execute(expenseRecordShowQry);
} }
} }

View File

@ -21,19 +21,19 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor @RequiredArgsConstructor
public class OrderSupplierServiceImpl implements OrderSupplierServiceI { public class OrderSupplierServiceImpl implements OrderSupplierServiceI {
private final OrderSupplierUpdateCmdExe orderSupplierUpdateCmdExe; private final OrderSupplierUpdateCmdExe orderSupplierUpdateCmdExe;
private final OrderSupplierPageQryExe orderSupplierPageQryExe; private final OrderSupplierPageQryExe orderSupplierPageQryExe;
@Override @Override
public PageDTO<OrderSupplierVO> page(OrderSupplierPageQry orderSupplierPageQry) { public PageDTO<OrderSupplierVO> page(OrderSupplierPageQry orderSupplierPageQry) {
return PageDTO.of(orderSupplierPageQryExe.execute(orderSupplierPageQry)); return PageDTO.of(orderSupplierPageQryExe.execute(orderSupplierPageQry));
} }
@Override @Override
public OrderSupplierVO update(OrderSupplierUpdateCmd orderSupplierUpdateCmd) { public OrderSupplierVO update(OrderSupplierUpdateCmd orderSupplierUpdateCmd) {
return orderSupplierUpdateCmdExe.execute(orderSupplierUpdateCmd); return orderSupplierUpdateCmdExe.execute(orderSupplierUpdateCmd);
} }
} }

View File

@ -31,41 +31,41 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentRecordServiceImpl implements PaymentRecordServiceI { public class PaymentRecordServiceImpl implements PaymentRecordServiceI {
private final PaymentRecordCreateCmdExe paymentRecordCreateCmdExe; private final PaymentRecordCreateCmdExe paymentRecordCreateCmdExe;
private final PaymentRecordUpdateCmdExe paymentRecordUpdateCmdExe; private final PaymentRecordUpdateCmdExe paymentRecordUpdateCmdExe;
private final PaymentRecordPageQryExe paymentRecordPageQryExe; private final PaymentRecordPageQryExe paymentRecordPageQryExe;
private final PaymentRecordListQryExe paymentRecordListQryExe; private final PaymentRecordListQryExe paymentRecordListQryExe;
private final PaymentRecordShowQryExe paymentRecordShowQryExe; private final PaymentRecordShowQryExe paymentRecordShowQryExe;
private final PaymentRecordDestroyCmdExe paymentRecordDestroyCmdExe; private final PaymentRecordDestroyCmdExe paymentRecordDestroyCmdExe;
@Override @Override
public PaymentRecordVO create(PaymentRecordCreateCmd paymentRecordCreateCmd) { public PaymentRecordVO create(PaymentRecordCreateCmd paymentRecordCreateCmd) {
return paymentRecordCreateCmdExe.execute(paymentRecordCreateCmd); return paymentRecordCreateCmdExe.execute(paymentRecordCreateCmd);
} }
@Override @Override
public PageDTO<PaymentRecordVO> page(PaymentRecordPageQry paymentRecordPageQry) { public PageDTO<PaymentRecordVO> page(PaymentRecordPageQry paymentRecordPageQry) {
return PageDTO.of(paymentRecordPageQryExe.execute(paymentRecordPageQry)); return PageDTO.of(paymentRecordPageQryExe.execute(paymentRecordPageQry));
} }
@Override @Override
public List<PaymentRecordVO> list(PaymentRecordListQry paymentRecordListQry) { public List<PaymentRecordVO> list(PaymentRecordListQry paymentRecordListQry) {
return paymentRecordListQryExe.execute(paymentRecordListQry); return paymentRecordListQryExe.execute(paymentRecordListQry);
} }
@Override @Override
public PaymentRecordVO update(PaymentRecordUpdateCmd paymentRecordUpdateCmd) { public PaymentRecordVO update(PaymentRecordUpdateCmd paymentRecordUpdateCmd) {
return paymentRecordUpdateCmdExe.execute(paymentRecordUpdateCmd); return paymentRecordUpdateCmdExe.execute(paymentRecordUpdateCmd);
} }
@Override @Override
public PaymentRecordVO show(PaymentRecordShowQry paymentRecordShowQry) { public PaymentRecordVO show(PaymentRecordShowQry paymentRecordShowQry) {
return paymentRecordShowQryExe.execute(paymentRecordShowQry); return paymentRecordShowQryExe.execute(paymentRecordShowQry);
} }
@Override @Override
public void destroy(PaymentRecordDestroyCmd paymentRecordDestroyCmd) { public void destroy(PaymentRecordDestroyCmd paymentRecordDestroyCmd) {
paymentRecordDestroyCmdExe.execute(paymentRecordDestroyCmd); paymentRecordDestroyCmdExe.execute(paymentRecordDestroyCmd);
} }
} }

View File

@ -36,53 +36,53 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class PaymentTaskServiceImpl implements PaymentTaskServiceI { public class PaymentTaskServiceImpl implements PaymentTaskServiceI {
private final PaymentTaskCreateCmdExe paymentTaskCreateCmdExe; private final PaymentTaskCreateCmdExe paymentTaskCreateCmdExe;
private final PaymentTaskUpdateCmdExe paymentTaskUpdateCmdExe; private final PaymentTaskUpdateCmdExe paymentTaskUpdateCmdExe;
private final PaymentTaskPageQryExe paymentTaskPageQryExe; private final PaymentTaskPageQryExe paymentTaskPageQryExe;
private final PaymentTaskListQryExe paymentTaskListQryExe; private final PaymentTaskListQryExe paymentTaskListQryExe;
private final PaymentTaskShowQryExe paymentTaskShowQryExe; private final PaymentTaskShowQryExe paymentTaskShowQryExe;
private final PaymentTaskDestroyCmdExe paymentTaskDestroyCmdExe; private final PaymentTaskDestroyCmdExe paymentTaskDestroyCmdExe;
private final PaymentTaskStatisticsQryExe paymentTaskStatisticsQryExe; private final PaymentTaskStatisticsQryExe paymentTaskStatisticsQryExe;
private final PaymentTaskPayCmdExe paymentTaskPayCmdExe; private final PaymentTaskPayCmdExe paymentTaskPayCmdExe;
@Override @Override
public PaymentTaskVO create(PaymentTaskCreateCmd paymentTaskCreateCmd) { public PaymentTaskVO create(PaymentTaskCreateCmd paymentTaskCreateCmd) {
return paymentTaskCreateCmdExe.execute(paymentTaskCreateCmd); return paymentTaskCreateCmdExe.execute(paymentTaskCreateCmd);
} }
@Override @Override
public PageDTO<PaymentTaskVO> page(PaymentTaskPageQry paymentTaskPageQry) { public PageDTO<PaymentTaskVO> page(PaymentTaskPageQry paymentTaskPageQry) {
return PageDTO.of(paymentTaskPageQryExe.execute(paymentTaskPageQry)); return PageDTO.of(paymentTaskPageQryExe.execute(paymentTaskPageQry));
} }
@Override @Override
public List<PaymentTaskVO> list(PaymentTaskListQry paymentTaskListQry) { public List<PaymentTaskVO> list(PaymentTaskListQry paymentTaskListQry) {
return paymentTaskListQryExe.execute(paymentTaskListQry); return paymentTaskListQryExe.execute(paymentTaskListQry);
} }
@Override @Override
public PaymentTaskVO update(PaymentTaskUpdateCmd paymentTaskUpdateCmd) { public PaymentTaskVO update(PaymentTaskUpdateCmd paymentTaskUpdateCmd) {
return paymentTaskUpdateCmdExe.execute(paymentTaskUpdateCmd); return paymentTaskUpdateCmdExe.execute(paymentTaskUpdateCmd);
} }
@Override @Override
public PaymentTaskVO show(PaymentTaskShowQry paymentTaskShowQry) { public PaymentTaskVO show(PaymentTaskShowQry paymentTaskShowQry) {
return paymentTaskShowQryExe.execute(paymentTaskShowQry); return paymentTaskShowQryExe.execute(paymentTaskShowQry);
} }
@Override @Override
public void destroy(PaymentTaskDestroyCmd paymentTaskDestroyCmd) { public void destroy(PaymentTaskDestroyCmd paymentTaskDestroyCmd) {
paymentTaskDestroyCmdExe.execute(paymentTaskDestroyCmd); paymentTaskDestroyCmdExe.execute(paymentTaskDestroyCmd);
} }
@Override @Override
public PaymentTaskStatisticsVO statistics(PaymentTaskStatisticsQry statisticsQry) { public PaymentTaskStatisticsVO statistics(PaymentTaskStatisticsQry statisticsQry) {
return paymentTaskStatisticsQryExe.execute(statisticsQry); return paymentTaskStatisticsQryExe.execute(statisticsQry);
} }
@Override @Override
public PaymentTaskVO pay(PaymentTaskPayCmd paymentTaskPayCmd) { public PaymentTaskVO pay(PaymentTaskPayCmd paymentTaskPayCmd) {
return paymentTaskPayCmdExe.execute(paymentTaskPayCmd); return paymentTaskPayCmdExe.execute(paymentTaskPayCmd);
} }
} }

View File

@ -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.api.ProductServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ProductCreateCmd; 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.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.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.ProductListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ProductPageQry; import com.xunhong.erp.turbo.api.biz.dto.qry.ProductPageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ProductShowQry; 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.ProductCreateCmdExe;
import com.xunhong.erp.turbo.biz.app.executor.cmd.ProductDestroyCmdExe; 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.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.ProductListQryExe;
import com.xunhong.erp.turbo.biz.app.executor.query.ProductPageQryExe; 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.ProductShowQryExe;
import com.xunhong.erp.turbo.biz.app.executor.query.ProductDragCmdExe;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService; import org.apache.dubbo.config.annotation.DubboService;
@ -33,46 +33,46 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ProductServiceImpl implements ProductServiceI { public class ProductServiceImpl implements ProductServiceI {
private final ProductCreateCmdExe productCreateCmdExe; private final ProductCreateCmdExe productCreateCmdExe;
private final ProductUpdateCmdExe productUpdateCmdExe; private final ProductUpdateCmdExe productUpdateCmdExe;
private final ProductPageQryExe productPageQryExe; private final ProductPageQryExe productPageQryExe;
private final ProductListQryExe productListQryExe; private final ProductListQryExe productListQryExe;
private final ProductShowQryExe productShowQryExe; private final ProductShowQryExe productShowQryExe;
private final ProductDestroyCmdExe productDestroyCmdExe; private final ProductDestroyCmdExe productDestroyCmdExe;
private final ProductDragCmdExe productDragCmdExe; private final ProductDragCmdExe productDragCmdExe;
@Override @Override
public ProductVO create(ProductCreateCmd productCreateCmd) { public ProductVO create(ProductCreateCmd productCreateCmd) {
return productCreateCmdExe.execute(productCreateCmd); return productCreateCmdExe.execute(productCreateCmd);
} }
@Override @Override
public PageDTO<ProductVO> page(ProductPageQry productPageQry) { public PageDTO<ProductVO> page(ProductPageQry productPageQry) {
return PageDTO.of(productPageQryExe.execute(productPageQry)); return PageDTO.of(productPageQryExe.execute(productPageQry));
} }
@Override @Override
public List<ProductVO> list(ProductListQry productListQry) { public List<ProductVO> list(ProductListQry productListQry) {
return productListQryExe.execute(productListQry); return productListQryExe.execute(productListQry);
} }
@Override @Override
public ProductVO update(ProductUpdateCmd productUpdateCmd) { public ProductVO update(ProductUpdateCmd productUpdateCmd) {
return productUpdateCmdExe.execute(productUpdateCmd); return productUpdateCmdExe.execute(productUpdateCmd);
} }
@Override @Override
public ProductVO show(ProductShowQry productShowQry) { public ProductVO show(ProductShowQry productShowQry) {
return productShowQryExe.execute(productShowQry); return productShowQryExe.execute(productShowQry);
} }
@Override @Override
public void destroy(ProductDestroyCmd productDestroyCmd) { public void destroy(ProductDestroyCmd productDestroyCmd) {
productDestroyCmdExe.execute(productDestroyCmd); productDestroyCmdExe.execute(productDestroyCmd);
} }
@Override @Override
public void drag(ProductDragCmd productDragCmd) { public void drag(ProductDragCmd productDragCmd) {
productDragCmdExe.execute(productDragCmd); productDragCmdExe.execute(productDragCmd);
} }
} }

View File

@ -31,41 +31,41 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationInvoiceServiceImpl implements ReconciliationInvoiceServiceI { public class ReconciliationInvoiceServiceImpl implements ReconciliationInvoiceServiceI {
private final ReconciliationInvoiceCreateCmdExe reconciliationInvoiceCreateCmdExe; private final ReconciliationInvoiceCreateCmdExe reconciliationInvoiceCreateCmdExe;
private final ReconciliationInvoiceUpdateCmdExe reconciliationInvoiceUpdateCmdExe; private final ReconciliationInvoiceUpdateCmdExe reconciliationInvoiceUpdateCmdExe;
private final ReconciliationInvoicePageQryExe reconciliationInvoicePageQryExe; private final ReconciliationInvoicePageQryExe reconciliationInvoicePageQryExe;
private final ReconciliationInvoiceListQryExe reconciliationInvoiceListQryExe; private final ReconciliationInvoiceListQryExe reconciliationInvoiceListQryExe;
private final ReconciliationInvoiceShowQryExe reconciliationInvoiceShowQryExe; private final ReconciliationInvoiceShowQryExe reconciliationInvoiceShowQryExe;
private final ReconciliationInvoiceDestroyCmdExe reconciliationInvoiceDestroyCmdExe; private final ReconciliationInvoiceDestroyCmdExe reconciliationInvoiceDestroyCmdExe;
@Override @Override
public ReconciliationInvoiceVO create(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) { public ReconciliationInvoiceVO create(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
return reconciliationInvoiceCreateCmdExe.execute(reconciliationInvoiceCreateCmd); return reconciliationInvoiceCreateCmdExe.execute(reconciliationInvoiceCreateCmd);
} }
@Override @Override
public PageDTO<ReconciliationInvoiceVO> page(ReconciliationInvoicePageQry reconciliationInvoicePageQry) { public PageDTO<ReconciliationInvoiceVO> page(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
return PageDTO.of(reconciliationInvoicePageQryExe.execute(reconciliationInvoicePageQry)); return PageDTO.of(reconciliationInvoicePageQryExe.execute(reconciliationInvoicePageQry));
} }
@Override @Override
public List<ReconciliationInvoiceVO> list(ReconciliationInvoiceListQry reconciliationInvoiceListQry) { public List<ReconciliationInvoiceVO> list(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
return reconciliationInvoiceListQryExe.execute(reconciliationInvoiceListQry); return reconciliationInvoiceListQryExe.execute(reconciliationInvoiceListQry);
} }
@Override @Override
public ReconciliationInvoiceVO update(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) { public ReconciliationInvoiceVO update(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
return reconciliationInvoiceUpdateCmdExe.execute(reconciliationInvoiceUpdateCmd); return reconciliationInvoiceUpdateCmdExe.execute(reconciliationInvoiceUpdateCmd);
} }
@Override @Override
public ReconciliationInvoiceVO show(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) { public ReconciliationInvoiceVO show(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
return reconciliationInvoiceShowQryExe.execute(reconciliationInvoiceShowQry); return reconciliationInvoiceShowQryExe.execute(reconciliationInvoiceShowQry);
} }
@Override @Override
public void destroy(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) { public void destroy(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
reconciliationInvoiceDestroyCmdExe.execute(reconciliationInvoiceDestroyCmd); reconciliationInvoiceDestroyCmdExe.execute(reconciliationInvoiceDestroyCmd);
} }
} }

View File

@ -31,41 +31,41 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationPaymentServiceImpl implements ReconciliationPaymentServiceI { public class ReconciliationPaymentServiceImpl implements ReconciliationPaymentServiceI {
private final ReconciliationPaymentCreateCmdExe reconciliationPaymentCreateCmdExe; private final ReconciliationPaymentCreateCmdExe reconciliationPaymentCreateCmdExe;
private final ReconciliationPaymentUpdateCmdExe reconciliationPaymentUpdateCmdExe; private final ReconciliationPaymentUpdateCmdExe reconciliationPaymentUpdateCmdExe;
private final ReconciliationPaymentPageQryExe reconciliationPaymentPageQryExe; private final ReconciliationPaymentPageQryExe reconciliationPaymentPageQryExe;
private final ReconciliationPaymentListQryExe reconciliationPaymentListQryExe; private final ReconciliationPaymentListQryExe reconciliationPaymentListQryExe;
private final ReconciliationPaymentShowQryExe reconciliationPaymentShowQryExe; private final ReconciliationPaymentShowQryExe reconciliationPaymentShowQryExe;
private final ReconciliationPaymentDestroyCmdExe reconciliationPaymentDestroyCmdExe; private final ReconciliationPaymentDestroyCmdExe reconciliationPaymentDestroyCmdExe;
@Override @Override
public ReconciliationPaymentVO create(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) { public ReconciliationPaymentVO create(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
return reconciliationPaymentCreateCmdExe.execute(reconciliationPaymentCreateCmd); return reconciliationPaymentCreateCmdExe.execute(reconciliationPaymentCreateCmd);
} }
@Override @Override
public PageDTO<ReconciliationPaymentVO> page(ReconciliationPaymentPageQry reconciliationPaymentPageQry) { public PageDTO<ReconciliationPaymentVO> page(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
return PageDTO.of(reconciliationPaymentPageQryExe.execute(reconciliationPaymentPageQry)); return PageDTO.of(reconciliationPaymentPageQryExe.execute(reconciliationPaymentPageQry));
} }
@Override @Override
public List<ReconciliationPaymentVO> list(ReconciliationPaymentListQry reconciliationPaymentListQry) { public List<ReconciliationPaymentVO> list(ReconciliationPaymentListQry reconciliationPaymentListQry) {
return reconciliationPaymentListQryExe.execute(reconciliationPaymentListQry); return reconciliationPaymentListQryExe.execute(reconciliationPaymentListQry);
} }
@Override @Override
public ReconciliationPaymentVO update(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) { public ReconciliationPaymentVO update(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
return reconciliationPaymentUpdateCmdExe.execute(reconciliationPaymentUpdateCmd); return reconciliationPaymentUpdateCmdExe.execute(reconciliationPaymentUpdateCmd);
} }
@Override @Override
public ReconciliationPaymentVO show(ReconciliationPaymentShowQry reconciliationPaymentShowQry) { public ReconciliationPaymentVO show(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
return reconciliationPaymentShowQryExe.execute(reconciliationPaymentShowQry); return reconciliationPaymentShowQryExe.execute(reconciliationPaymentShowQry);
} }
@Override @Override
public void destroy(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) { public void destroy(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
reconciliationPaymentDestroyCmdExe.execute(reconciliationPaymentDestroyCmd); reconciliationPaymentDestroyCmdExe.execute(reconciliationPaymentDestroyCmd);
} }
} }

View File

@ -33,47 +33,47 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReconciliationServiceImpl implements ReconciliationServiceI { public class ReconciliationServiceImpl implements ReconciliationServiceI {
private final ReconciliationCreateCmdExe reconciliationCreateCmdExe; private final ReconciliationCreateCmdExe reconciliationCreateCmdExe;
private final ReconciliationUpdateCmdExe reconciliationUpdateCmdExe; private final ReconciliationUpdateCmdExe reconciliationUpdateCmdExe;
private final ReconciliationPageQryExe reconciliationPageQryExe; private final ReconciliationPageQryExe reconciliationPageQryExe;
private final ReconciliationListQryExe reconciliationListQryExe; private final ReconciliationListQryExe reconciliationListQryExe;
private final ReconciliationShowQryExe reconciliationShowQryExe; private final ReconciliationShowQryExe reconciliationShowQryExe;
private final ReconciliationCompleteCmdExe reconciliationCompleteCmdExe; private final ReconciliationCompleteCmdExe reconciliationCompleteCmdExe;
private final ReconciliationDestroyCmdExe reconciliationDestroyCmdExe; private final ReconciliationDestroyCmdExe reconciliationDestroyCmdExe;
@Override @Override
public ReconciliationVO create(ReconciliationCreateCmd reconciliationCreateCmd) { public ReconciliationVO create(ReconciliationCreateCmd reconciliationCreateCmd) {
return reconciliationCreateCmdExe.execute(reconciliationCreateCmd); return reconciliationCreateCmdExe.execute(reconciliationCreateCmd);
} }
@Override @Override
public PageDTO<ReconciliationVO> page(ReconciliationPageQry reconciliationPageQry) { public PageDTO<ReconciliationVO> page(ReconciliationPageQry reconciliationPageQry) {
return PageDTO.of(reconciliationPageQryExe.execute(reconciliationPageQry)); return PageDTO.of(reconciliationPageQryExe.execute(reconciliationPageQry));
} }
@Override @Override
public List<ReconciliationVO> list(ReconciliationListQry reconciliationListQry) { public List<ReconciliationVO> list(ReconciliationListQry reconciliationListQry) {
return reconciliationListQryExe.execute(reconciliationListQry); return reconciliationListQryExe.execute(reconciliationListQry);
} }
@Override @Override
public ReconciliationVO update(ReconciliationUpdateCmd reconciliationUpdateCmd) { public ReconciliationVO update(ReconciliationUpdateCmd reconciliationUpdateCmd) {
return reconciliationUpdateCmdExe.execute(reconciliationUpdateCmd); return reconciliationUpdateCmdExe.execute(reconciliationUpdateCmd);
} }
@Override @Override
public ReconciliationVO show(ReconciliationShowQry reconciliationShowQry) { public ReconciliationVO show(ReconciliationShowQry reconciliationShowQry) {
return reconciliationShowQryExe.execute(reconciliationShowQry); return reconciliationShowQryExe.execute(reconciliationShowQry);
} }
@Override @Override
public ReconciliationVO complete(ReconciliationCompleteCmd reconciliationCompleteCmd) { public ReconciliationVO complete(ReconciliationCompleteCmd reconciliationCompleteCmd) {
return reconciliationCompleteCmdExe.execute(reconciliationCompleteCmd); return reconciliationCompleteCmdExe.execute(reconciliationCompleteCmd);
} }
@Override @Override
public void destroy(ReconciliationDestroyCmd reconciliationDestroyCmd) { public void destroy(ReconciliationDestroyCmd reconciliationDestroyCmd) {
reconciliationDestroyCmdExe.execute(reconciliationDestroyCmd); reconciliationDestroyCmdExe.execute(reconciliationDestroyCmd);
} }
} }

View File

@ -18,65 +18,65 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class Audit extends DTO { public class Audit extends DTO {
/** /**
* 审核Id * 审核Id
*/ */
private Long auditId; private Long auditId;
/** /**
* 资源Id * 资源Id
*/ */
private Long subjectId; private Long subjectId;
/** /**
* 资源类型 * 资源类型
*/ */
private AuditSubjectTypeEnum subjectType; private AuditSubjectTypeEnum subjectType;
/** /**
* 审核状态: 1_待审核2_审核中3_审核通过4_审核驳回5_审核撤回 * 审核状态: 1_待审核2_审核中3_审核通过4_审核驳回5_审核撤回
*/ */
private AuditStateEnum state; private AuditStateEnum state;
/** /**
* 审核类型1_审核员审核2_老板审核 * 审核类型1_审核员审核2_老板审核
*/ */
private AuditTypeEnum type; private AuditTypeEnum type;
/** /**
* 驳回原因 * 驳回原因
*/ */
private String auditReason; private String auditReason;
/** /**
* 审核时间 * 审核时间
*/ */
private LocalDateTime auditAt; private LocalDateTime auditAt;
/** /**
* 审核人ID * 审核人ID
*/ */
private Long auditBy; private Long auditBy;
/** /**
* 审核人名称 * 审核人名称
*/ */
private String auditByName; private String auditByName;
/** /**
* 创建人ID * 创建人ID
*/ */
private Long createdBy; private Long createdBy;
/** /**
* 创建人姓名 * 创建人姓名
*/ */
private String createdByName; private String createdByName;
/** /**
* 创建时间 * 创建时间
*/ */
private LocalDateTime createdAt; private LocalDateTime createdAt;
/** /**
* 采购订单 * 采购订单

View File

@ -16,35 +16,35 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class BoxSpec extends DTO { public class BoxSpec extends DTO {
/** /**
* 规格ID * 规格ID
*/ */
private Long specId; private Long specId;
/** /**
* 规格名称 * 规格名称
*/ */
private String name; private String name;
/** /**
* 排序号 * 排序号
*/ */
private BigDecimal sort; private BigDecimal sort;
/** /**
* 备注 * 备注
*/ */
private String remark; private String remark;
/** /**
* 状态1_启用0_禁用 * 状态1_启用0_禁用
*/ */
private Boolean status; private Boolean status;
/** /**
* 创建时间 * 创建时间
*/ */
private LocalDateTime createdAt; private LocalDateTime createdAt;
} }

View File

@ -19,50 +19,50 @@ import java.util.List;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class Cost extends DTO { public class Cost extends DTO {
/** /**
* 费用ID * 费用ID
*/ */
private Long costId; private Long costId;
/** /**
* 费用类型1_辅料类型2_人工类型3_产地类型4_其他类型5_物流类型 * 费用类型1_辅料类型2_人工类型3_产地类型4_其他类型5_物流类型
*/ */
private CostTypeEnum type; private CostTypeEnum type;
/** /**
* 费用归属0_无归属1_工头2_产地3_司机 * 费用归属0_无归属1_工头2_产地3_司机
*/ */
private CostBelongEnum belong; 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_禁用 * 状态1_启用0_禁用
*/ */
private Boolean status; private Boolean status;
/** /**
* 是否默认 * 是否默认
@ -73,10 +73,10 @@ public class Cost extends DTO {
private List<CostItem> costItemList; 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