Compare commits

..

No commits in common. "b582d62a7bcedad37221c9974030de1a7ec0bb61" and "b06a6a1fdda2871154cee78f7a145856768872c0" have entirely different histories.

254 changed files with 1504 additions and 7322 deletions

View File

@ -1,87 +0,0 @@
---
paths: erp-turbo-*/**/*.java
---
# ERPTurbo 项目规则
## 模块架构
ERPTurbo 项目包含两个主要模块:
- **erp-turbo-business** - 主要业务模块(**仅操作此模块**
- **erp-turbo-svc** - 旧版服务模块(**禁止操作**
### 重要规则
⚠️ **绝对不要修改 `erp-turbo-svc` 模块下的任何文件**
所有代码变更都应该在 `erp-turbo-business` 模块中进行。
## 目录结构
```
ERPTurbo_Server/
├── erp-turbo-business/ # 主业务模块 ✅ 可操作
│ ├── erp-turbo-biz/ # 业务逻辑层
│ │ ├── src/main/java/
│ │ │ ├── domain/ # 领域层
│ │ │ ├── app/ # 应用层
│ │ │ └── infrastructure/ # 基础设施层
│ └── erp-turbo-api/ # API 定义层
└── erp-turbo-svc/ # 聚合服务模块自动生成 ❌ 禁止操作
├── erp-turbo-biz/
└── erp-turbo-api/
```
## 文件路径规范
在进行字段添加、枚举添加等操作时,**仅处理以下路径**
### API 层erp-turbo-business/erp-turbo-api
```
erp-turbo-common/erp-turbo-api/src/main/java/com/xunhong/erp/turbo/api/biz/dto/
├── cmd/ # 命令对象CreateCmd, UpdateCmd, DestroyCmd
├── vo/ # 视图对象
├── qry/ # 查询对象
├── common/ # 通用对象
└── enums/ # 枚举类
```
### Domain 层erp-turbo-business/erp-turbo-biz
```
erp-turbo-business/erp-turbo-biz/src/main/java/com/xunhong/erp/turbo/biz/
├── domain/ # 领域实体
└── infrastructure/
├── entity/ # DO 实体
├── mapper/ # MyBatis Mapper
└── convert/ # 对象转换器
```
### 禁止操作的路径
```
❌ erp-turbo-svc/
```
## 示例
### ✅ 正确操作
添加字段到 OrderShip
- `erp-turbo-business/erp-turbo-biz/.../entity/OrderShipDO.java`
- `erp-turbo-business/erp-turbo-biz/.../domain/entity/OrderShip.java`
- `erp-turbo-common/erp-turbo-api/.../vo/OrderShipVO.java`
### ❌ 错误操作
- `erp-turbo-svc/erp-turbo-biz/.../entity/OrderShipDO.java`
- `erp-turbo-svc/erp-turbo-biz/.../domain/entity/OrderShip.java`
## 文件搜索策略
使用 Glob/Grep 工具时,应排除 `erp-turbo-svc` 目录:
```bash
# 错误示例
**/*OrderShip*.java
# 正确示例(使用路径限制)
erp-turbo-business/**/*OrderShip*.java
```

View File

@ -1,201 +0,0 @@
---
name: "add-enum-field"
description: "Add enum field to ERPTurbo project entities following DDD layered architecture. Automatically creates enum class, updates DO, VO, Cmd, and Domain Entity with proper type mapping and MyBatis annotations."
---
# Add Enum Field
为 ERPTurbo 项目实体添加枚举字段,遵循 DDD 分层架构规范。
## ⚠️ 重要规则
**仅操作 `erp-turbo-business` 模块,禁止修改 `erp-turbo-svc` 模块!**
详见:`.claude/PROJECT_RULES.md`
## 工作流程
## 输入格式
```
Enum: EnumName | value1:description1, value2:description2, ... | fieldName | fieldComment
```
**示例:**
```
Enum: DealerAccountRecordTargetType | 1:产地采购发货单,2:市场采购发货单,3:市场调货发货单 | targetType | 变动类型
```
## 工作流程
### 1. 创建枚举类
路径:`erp-turbo-api/src/main/java/com/xunhong/erp/turbo/api/biz/dto/enums/`
```java
@Getter
@RequiredArgsConstructor
public enum YourEnumName {
VALUE1(1, "描述1"),
VALUE2(2, "描述2");
@EnumValue
private final Integer type;
private final String message;
}
```
### 2. 更新相关文件(仅限 erp-turbo-business 模块)
| 文件路径 | 类型 | 修改内容 |
|---------|------|---------|
| `erp-turbo-business/erp-turbo-biz/.../entity/*DO.java` | Entity | 添加枚举类型字段 + `@TableField` |
| `erp-turbo-common/erp-turbo-api/.../vo/*VO.java` | VO | 添加枚举类型字段 + `@Schema` |
| `erp-turbo-common/erp-turbo-api/.../cmd/*CreateCmd.java` | CMD | 添加枚举类型字段 + `@Schema` |
| `erp-turbo-common/erp-turbo-api/.../cmd/*UpdateCmd.java` | CMD | 添加枚举类型字段 + `@Schema` |
| `erp-turbo-business/erp-turbo-biz/.../domain/entity/*.java` | Domain Entity | 添加枚举类型字段 |
⚠️ **禁止修改** `erp-turbo-svc/` 下的任何文件!
### 3. 生成 DDL
```sql
ALTER TABLE table_name
ADD COLUMN field_name TINYINT COMMENT 'field comment';
```
## 枚举设计规范
### 基本结构
```java
package com.xunhong.erp.turbo.api.biz.dto.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@Getter
@RequiredArgsConstructor
public enum YourEnum {
/**
* 枚举值1
*/
VALUE1(1, "描述1"),
/**
* 枚举值2
*/
VALUE2(2, "描述2");
@EnumValue
private final Integer type;
private final String message;
}
```
### 实用方法(可选)
```java
/**
* 根据类型值获取枚举
*/
public static YourEnum fromType(Integer type) {
if (type == null) {
return null;
}
for (YourEnum value : values()) {
if (value.type.equals(type)) {
return value;
}
}
return null;
}
/**
* 根据其他枚举转换
*/
public static YourEnum fromOtherEnum(OtherEnum other) {
if (other == null) {
return null;
}
return switch (other) {
case OTHER_VALUE1 -> VALUE1;
case OTHER_VALUE2 -> VALUE2;
default -> null;
};
}
```
## 数据库类型映射
| 枚举值数量 | 数据库类型 | Java 类型 |
|----------|----------|----------|
| 1-10 | `TINYINT` | `Integer` + 枚举 |
| 11-100 | `SMALLINT` | `Integer` + 枚举 |
| 100+ | `INT` | `Integer` + 枚举 |
## 使用示例
### 示例 1简单状态枚举
```
Enum: AuditState | 1:待审核,2:审核中,3:审核成功,4:审核驳回,5:审核取消 | state | 审核状态
```
### 示例 2带转换方法的枚举
```
Enum: DealerAccountRecordTargetType | 1:产地采购发货单,2:市场采购发货单,3:市场调货发货单 | targetType | 变动类型
```
## 注意事项
1. **@EnumValue 注解**MyBatis-Plus 需要此注解来识别数据库存储的枚举值
2. **Integer 类型**:枚举的存储值使用 `Integer` 而非 `int`,避免空值问题
3. **命名规范**
- 枚举类名:`PascalCase` + `Enum` 后缀(可选)
- 枚举值:`UPPER_SNAKE_CASE`
4. **null 处理**:转换方法中正确处理 null 值
5. **业务逻辑**:复杂转换逻辑放在枚举类的静态方法中,保持业务代码整洁
## 输出示例
```
✅ 已完成枚举字段添加
========================================
创建文件:
✅ api/.../enums/YourEnum.java (erp-turbo-common)
更新文件:
✅ biz/.../entity/YourEntityDO.java (erp-turbo-business)
✅ api/.../vo/YourEntityVO.java (erp-turbo-common)
✅ api/.../cmd/YourEntityCreateCmd.java (erp-turbo-common)
✅ api/.../cmd/YourEntityUpdateCmd.java (erp-turbo-common)
✅ biz/.../domain/entity/YourEntity.java (erp-turbo-business)
⚠️ 请执行数据库迁移:
ALTER TABLE your_table
ADD COLUMN your_field TINYINT COMMENT 'your comment';
```
## 文件搜索规则
使用 Glob 工具时,**必须限制在 erp-turbo-business 模块**
```bash
# ✅ 正确:限定路径
erp-turbo-business/**/*.java
erp-turbo-common/**/*.java
# ❌ 错误:会匹配到 svc 模块
**/*OrderShip*.java
```
使用 Grep 工具时,**排除 erp-turbo-svc 目录**
```bash
# ✅ 正确:指定路径
grep -r "pattern" erp-turbo-business/ erp-turbo-common/
# ❌ 错误:搜索所有目录
grep -r "pattern" .
```

View File

@ -1,78 +0,0 @@
---
name: "add-database-field"
description: "Standardized field addition tool for ERPTurbo project. Automatically adds fields to DO, VO, Cmd, and Domain Entity classes with proper type mapping, annotations, and generates DDL migration script. Supports snake_case to camelCase conversion, BigDecimal for decimal types, and proper Java imports."
---
# Add Database Field
Add fields to ERPTurbo project entities following the standard DDD layered architecture.
## ⚠️ 重要规则
**仅操作 `erp-turbo-business` 模块,禁止修改 `erp-turbo-svc` 模块!**
详见:`.claude/PROJECT_RULES.md`
## Workflow
## Input Format
Provide field information in this format:
```markdown
Field: field_name | java_type | default_value | comment
```
**Example:**
```
Field: receivable_amount | BigDecimal | 0.00 | 应收金额(元)
Field: adjusted_amount | BigDecimal | 0.00 | 调整总额(元)
```
## Supported Java Types
| Database Type | Java Type | Import |
|---------------|-----------|--------|
| DECIMAL(p,s) | BigDecimal | `java.math.BigDecimal` |
| INT / BIGINT | Long | (primitive) |
| VARCHAR | String | (primitive) |
| DATETIME | LocalDateTime | `java.time.LocalDateTime` |
| DATE | LocalDate | `java.time.LocalDate` |
| BOOLEAN / TINYINT | Boolean | (primitive) |
| DOUBLE / FLOAT | Double | (primitive) |
## Workflow
1. **Locate Entity File**: Find `*DO.java` in `erp-turbo-business/erp-turbo-biz/.../infrastructure/entity/` **跳过 erp-turbo-svc**
2. **Find Related Files**: Locate corresponding VO, Cmd, common DTO, and domain Entity files**仅在 erp-turbo-business 模块**
3. **Add Import**: Add `java.math.BigDecimal` if needed
4. **Add Field**: Insert after `remark` field with proper annotations:
- DO: `@TableField(value = "snake_case_name")`
- VO: `@Schema(title = "comment")`
- Cmd: `@Schema(title = "comment")`
- Domain Entity: No annotations
5. **Generate DDL**: Output migration script
## Output Example
```
✅ 已完成字段添加
========================================
文件变更:
✅ biz/.../entity/OrderShipDO.java
✅ api/.../vo/OrderShipVO.java
✅ api/.../cmd/OrderShipCreateCmd.java
✅ api/.../cmd/OrderShipUpdateCmd.java
✅ api/.../common/OrderShip.java
✅ biz/.../domain/entity/OrderShip.java
⚠️ 请执行数据库迁移:
ALTER TABLE order_ship
ADD COLUMN receivable_amount DECIMAL(16, 2) DEFAULT 0.00 NULL COMMENT '应收金额(元)',
ADD COLUMN adjusted_amount DECIMAL(16, 2) DEFAULT 0.00 NULL COMMENT '调整总额(元)';
```
## Naming Convention
- **Database**: snake_case (e.g., `receivable_amount`)
- **Java**: camelCase (e.g., `receivableAmount`)
- **Comment**: Chinese description with unit if applicable

View File

@ -1,313 +0,0 @@
---
name: "add-state-transition"
description: "为实体添加状态流转接口(如:完成、取消等)。遵循 ERPTurbo 项目的 DDD 分层架构规范。"
---
# Add State Transition
为实体添加状态流转接口,遵循 DDD 分层架构规范。
## ⚠️ 重要规则
**仅操作 `erp-turbo-business``erp-turbo-admin` 模块,禁止修改 `erp-turbo-svc` 模块!**
详见:`.claude/PROJECT_RULES.md`
## 功能说明
为实体添加状态流转接口,例如:订单完成、对账取消、审核通过等。
## 输入格式
```
Entity: {实体名称}
Action: {操作名称}
TargetState: {目标状态值}
Comment: {操作中文描述}
```
**示例:**
```
Entity: Reconciliation
Action: Complete
TargetState: RECONCILED
Comment: 对账完成
```
## 工作流程
### 1. 创建 Cmd DTO
路径:`erp-turbo-common/erp-turbo-api/src/main/java/com/xunhong/erp/turbo/api/biz/dto/cmd/`
**文件名:** `{Entity}{Action}Cmd.java`
```java
package com.xunhong.erp.turbo.api.biz.dto.cmd;
import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author shenyifei
*/
@Data
@Schema(title = "{Comment}")
@EqualsAndHashCode(callSuper = true)
public class {Entity}{Action}Cmd extends Command {
@Schema(title = "{EntityComment}ID", requiredMode = Schema.RequiredMode.REQUIRED, type = "string")
private Long {entityFieldName}Id;
}
```
### 2. 更新 Service 接口
路径:`erp-turbo-common/erp-turbo-api/src/main/java/com/xunhong/erp/turbo/api/biz/api/{Entity}ServiceI.java`
添加方法签名:
```java
{Entity}VO {action}({Entity}{Action}Cmd {entity}{Action}Cmd);
```
### 3. 更新 Gateway 接口
路径:`erp-turbo-business/erp-turbo-biz/src/main/java/com/xunhong/erp/turbo/biz/domain/gateway/{Entity}Gateway.java`
添加方法签名:
```java
{Entity} {action}({Entity}{Action}Cmd {entity}{Action}Cmd);
```
### 4. 实现 Gateway
路径:`erp-turbo-business/erp-turbo-biz/src/main/java/com/xunhong/erp/turbo/biz/infrastructure/gateway/{Entity}GatewayImpl.java`
添加 import
```java
import com.xunhong.erp.turbo.api.biz.dto.cmd.{Entity}{Action}Cmd;
import com.xunhong.erp.turbo.api.biz.dto.enums.{Entity}StateEnum;
```
实现方法:
```java
@Override
public {Entity} {action}({Entity}{Action}Cmd cmd) {
LambdaQueryWrapper<{Entity}DO> queryWrapper = Wrappers.lambdaQuery({Entity}DO.class);
queryWrapper.eq({Entity}DO::get{Entity}Id, cmd.get{Entity}Id());
queryWrapper.select({Entity}DO::get{Entity}Id, {Entity}DO::getState);
queryWrapper.last("limit 1");
{Entity}DO {entity}DO = {entity}Mapper.selectOne(queryWrapper);
if (!{entity}DO.getState().equals({Entity}StateEnum.{CURRENT_STATE})) {
throw new BizException(BizErrorCode.B_BIZ_{ENTITY_UPPER}_NOT_{CURRENT_STATE_UPPER});
}
{entity}DO.setState({Entity}StateEnum.{TARGET_STATE});
{entity}Mapper.updateById({entity}DO);
return {entity}Convert.to{Entity}({entity}DO);
}
```
### 5. 创建 Executor
路径:`erp-turbo-business/erp-turbo-biz/src/main/java/com/xunhong/erp/turbo/biz/app/executor/cmd/{Entity}{Action}CmdExe.java`
```java
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.{Entity}{Action}Cmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.{Entity}VO;
import com.xunhong.erp.turbo.biz.app.assembler.{Entity}Assembler;
import com.xunhong.erp.turbo.biz.domain.gateway.{Entity}Gateway;
import com.xunhong.erp.turbo.biz.domain.entity.{Entity};
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class {Entity}{Action}CmdExe {
private final {Entity}Gateway {entity}Gateway;
private final {Entity}Assembler {entity}Assembler;
public {Entity}VO execute({Entity}{Action}Cmd cmd) {
{Entity} {entity} = {entity}Gateway.{action}(cmd);
return {entity}Assembler.to{Entity}VO({entity});
}
}
```
### 6. 更新 ServiceImpl
路径:`erp-turbo-business/erp-turbo-biz/src/main/java/com/xunhong/erp/turbo/biz/app/service/{Entity}ServiceImpl.java`
添加字段注入:
```java
private final {Entity}{Action}CmdExe {entity}{Action}CmdExe;
```
添加方法实现:
```java
@Override
public {Entity}VO {action}({Entity}{Action}Cmd cmd) {
return {entity}{Action}CmdExe.execute(cmd);
}
```
### 7. 更新 Controller
路径:`erp-turbo-admin/src/main/java/com/xunhong/erp/turbo/admin/controller/{Entity}Controller.java`
添加 import
```java
import com.xunhong.erp.turbo.api.biz.dto.cmd.{Entity}{Action}Cmd;
```
添加接口方法:
```java
@SaCheckLogin
@PostMapping("{action}{Entity}")
@Operation(summary = "{Comment}", method = "POST")
public SingleResponse<{Entity}VO> {action}{Entity}(
@RequestBody @Validated {Entity}{Action}Cmd cmd) {
return SingleResponse.of({entity}Service.{action}(cmd));
}
```
## 命名规范
| 类型 | 格式 | 示例 |
|-----|------|-----|
| 实体名 | PascalCase | Reconciliation, Order |
| 操作名 | PascalCase | Complete, Cancel, Approve |
| 方法名 | camelCase | complete, cancel, approve |
| 字段名 | camelCase | reconciliationId, orderId |
| 常量 | UPPER_SNAKE_CASE | RECONCILIATION, ORDER |
## 使用示例
### 示例 1对账完成
```
Entity: Reconciliation
Action: Complete
TargetState: RECONCILED
Comment: 对账完成
CurrentState: PENDING
```
生成接口:`POST /operation/completeReconciliation`
### 示例 2订单取消
```
Entity: Order
Action: Cancel
TargetState: CANCELLED
Comment: 取消订单
CurrentState: PENDING
```
生成接口:`POST /operation/cancelOrder`
### 示例 3审核通过
```
Entity: PaymentTask
Action: Approve
TargetState: APPROVED
Comment: 审核通过
CurrentState: PENDING_APPROVAL
```
生成接口:`POST /operation/approvePaymentTask`
## 输出示例
```
✅ 已完成状态流转接口添加
========================================
创建文件:
✅ api/.../cmd/{Entity}{Action}Cmd.java (erp-turbo-common)
✅ biz/.../executor/cmd/{Entity}{Action}CmdExe.java (erp-turbo-business)
更新文件:
✅ api/.../api/{Entity}ServiceI.java (erp-turbo-common)
✅ biz/.../gateway/{Entity}Gateway.java (erp-turbo-business)
✅ biz/.../gateway/{Entity}GatewayImpl.java (erp-turbo-business)
✅ biz/.../service/{Entity}ServiceImpl.java (erp-turbo-business)
✅ admin/.../controller/{Entity}Controller.java (erp-turbo-admin)
接口路径: POST /{basePath}/{action}{Entity}
请求体: {"{entityFieldName}Id": 123}
状态流转: {CURRENT_STATE} → {TARGET_STATE}
```
## 注意事项
1. **状态验证**
- Gateway 实现中应验证当前状态
- 使用 `BizException` 抛出业务异常
- 错误码格式:`B_BIZ_{ENTITY}_NOT_{STATE}`
2. **查询优化**
- 使用 `queryWrapper.select()` 只查询必要字段
- 减少数据传输和内存占用
3. **事务处理**
- 根据需要添加 `@Transactional` 注解
- 涉及多表操作时务必使用事务
4. **接口一致性**
- 使用 `@PostMapping`
- 使用 `@RequestBody @Validated` 接收参数
- 返回类型统一为 `SingleResponse<{Entity}VO>`
5. **权限控制**
- 所有接口添加 `@SaCheckLogin` 注解
- 根据需要添加其他权限验证
6. **Assemble 方法**
- 使用 `to{Entity}VO()` 而非 `toVO()`
- 保持命名一致性
## 文件搜索规则
使用 Glob 工具时,**限定在特定模块**
```bash
# ✅ 正确:限定路径
erp-turbo-business/**/{Entity}*.java
erp-turbo-common/**/{Entity}*.java
erp-turbo-admin/**/{Entity}*.java
# ❌ 错误:会匹配到 svc 模块
**/*{Entity}*.java
```
## 常见状态流转模式
| 业务场景 | 当前状态 | 目标状态 | 操作名 |
|---------|---------|---------|--------|
| 对账完成 | PENDING | RECONCILED | Complete |
| 部分开票 | RECONCILED | PARTIAL_INVOICE | PartialInvoice |
| 完成开票 | PARTIAL_INVOICE | INVOICED | Invoice |
| 部分回款 | INVOICED | PARTIAL_PAYMENT | PartialPayment |
| 完成回款 | PARTIAL_PAYMENT | PAID | Payment |
| 订单取消 | PENDING | CANCELLED | Cancel |
| 审核通过 | PENDING | APPROVED | Approve |
| 审核驳回 | PENDING | REJECTED | Reject |

View File

@ -1,79 +0,0 @@
package com.xunhong.erp.turbo.admin.controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.xunhong.erp.turbo.api.biz.api.DealerAccountRecordServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordDestroyCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordPageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @author shenyifei
*/
@Tag(name = "DealerAccountRecord", description = "经销商账款明细管理")
@RestController("operationDealerAccountRecordController")
@RequestMapping(value = "/operation")
@RequiredArgsConstructor
public class DealerAccountRecordController {
@DubboReference(version = "1.0.0")
private final DealerAccountRecordServiceI dealerAccountRecordService;
@SaCheckLogin
@GetMapping("listDealerAccountRecord")
@Operation(summary = "经销商账款明细列表", method = "GET")
public MultiResponse<DealerAccountRecordVO> listDealerAccountRecord(@ModelAttribute @Validated DealerAccountRecordListQry dealerAccountRecordListQry) {
return MultiResponse.of(dealerAccountRecordService.list(dealerAccountRecordListQry));
}
@SaCheckLogin
@PostMapping("createDealerAccountRecord")
@Operation(summary = "创建经销商账款明细", method = "POST")
public SingleResponse<DealerAccountRecordVO> createDealerAccountRecord(@RequestBody @Validated DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
return SingleResponse.of(dealerAccountRecordService.create(dealerAccountRecordCreateCmd));
}
@SaCheckLogin
@GetMapping("showDealerAccountRecord")
@Operation(summary = "经销商账款明细详情", method = "GET")
public SingleResponse<DealerAccountRecordVO> showDealerAccountRecord(@ModelAttribute @Validated DealerAccountRecordShowQry dealerAccountRecordShowQry) {
return SingleResponse.of(dealerAccountRecordService.show(dealerAccountRecordShowQry));
}
@SaCheckLogin
@GetMapping("pageDealerAccountRecord")
@Operation(summary = "经销商账款明细列表", method = "GET")
public PageResponse<DealerAccountRecordVO> pageDealerAccountRecord(@ModelAttribute @Validated DealerAccountRecordPageQry dealerAccountRecordPageQry) {
PageDTO<DealerAccountRecordVO> page = dealerAccountRecordService.page(dealerAccountRecordPageQry);
return PageResponse.of(page.getRecords(), (int) page.getTotal(), (int) page.getSize(), (int) page.getCurrent());
}
@SaCheckLogin
@RequestMapping(value = "updateDealerAccountRecord", method = {RequestMethod.PATCH, RequestMethod.PUT})
@Operation(summary = "经销商账款明细更新", method = "PATCH")
public SingleResponse<DealerAccountRecordVO> updateDealerAccountRecord(@RequestBody @Validated DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
return SingleResponse.of(dealerAccountRecordService.update(dealerAccountRecordUpdateCmd));
}
@SaCheckLogin
@DeleteMapping("destroyDealerAccountRecord")
@Operation(summary = "经销商账款明细删除", method = "DELETE")
public Response destroyDealerAccountRecord(@RequestBody @Validated DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
dealerAccountRecordService.destroy(dealerAccountRecordDestroyCmd);
return Response.buildSuccess();
}
}

View File

@ -1,87 +0,0 @@
package com.xunhong.erp.turbo.admin.controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.xunhong.erp.turbo.api.biz.api.ReconciliationServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationCompleteCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationDestroyCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @author shenyifei
*/
@Tag(name = "Reconciliation", description = "对账管理")
@RestController("operationReconciliationController")
@RequestMapping(value = "/operation")
@RequiredArgsConstructor
public class ReconciliationController {
@DubboReference(version = "1.0.0")
private final ReconciliationServiceI reconciliationService;
@SaCheckLogin
@GetMapping("listReconciliation")
@Operation(summary = "对账列表", method = "GET")
public MultiResponse<ReconciliationVO> listReconciliation(@ModelAttribute @Validated ReconciliationListQry reconciliationListQry) {
return MultiResponse.of(reconciliationService.list(reconciliationListQry));
}
@SaCheckLogin
@PostMapping("createReconciliation")
@Operation(summary = "创建对账", method = "POST")
public SingleResponse<ReconciliationVO> createReconciliation(@RequestBody @Validated ReconciliationCreateCmd reconciliationCreateCmd) {
return SingleResponse.of(reconciliationService.create(reconciliationCreateCmd));
}
@SaCheckLogin
@GetMapping("showReconciliation")
@Operation(summary = "对账详情", method = "GET")
public SingleResponse<ReconciliationVO> showReconciliation(@ModelAttribute @Validated ReconciliationShowQry reconciliationShowQry) {
return SingleResponse.of(reconciliationService.show(reconciliationShowQry));
}
@SaCheckLogin
@GetMapping("pageReconciliation")
@Operation(summary = "对账列表", method = "GET")
public PageResponse<ReconciliationVO> pageReconciliation(@ModelAttribute @Validated ReconciliationPageQry reconciliationPageQry) {
PageDTO<ReconciliationVO> page = reconciliationService.page(reconciliationPageQry);
return PageResponse.of(page.getRecords(), (int) page.getTotal(), (int) page.getSize(), (int) page.getCurrent());
}
@SaCheckLogin
@RequestMapping(value = "updateReconciliation", method = {RequestMethod.PATCH, RequestMethod.PUT})
@Operation(summary = "对账更新", method = "PATCH")
public SingleResponse<ReconciliationVO> updateReconciliation(@RequestBody @Validated ReconciliationUpdateCmd reconciliationUpdateCmd) {
return SingleResponse.of(reconciliationService.update(reconciliationUpdateCmd));
}
@SaCheckLogin
@PostMapping("completeReconciliation")
@Operation(summary = "对账完成", method = "POST")
public SingleResponse<ReconciliationVO> completeReconciliation(@RequestBody @Validated ReconciliationCompleteCmd reconciliationCompleteCmd) {
return SingleResponse.of(reconciliationService.complete(reconciliationCompleteCmd));
}
@SaCheckLogin
@DeleteMapping("destroyReconciliation")
@Operation(summary = "对账删除", method = "DELETE")
public Response destroyReconciliation(@RequestBody @Validated ReconciliationDestroyCmd reconciliationDestroyCmd) {
reconciliationService.destroy(reconciliationDestroyCmd);
return Response.buildSuccess();
}
}

View File

@ -1,79 +0,0 @@
package com.xunhong.erp.turbo.admin.controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.xunhong.erp.turbo.api.biz.api.ReconciliationInvoiceServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceDestroyCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoiceListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoicePageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoiceShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @author shenyifei
*/
@Tag(name = "ReconciliationInvoice", description = "对账发票管理")
@RestController("operationReconciliationInvoiceController")
@RequestMapping(value = "/operation")
@RequiredArgsConstructor
public class ReconciliationInvoiceController {
@DubboReference(version = "1.0.0")
private final ReconciliationInvoiceServiceI reconciliationInvoiceService;
@SaCheckLogin
@GetMapping("listReconciliationInvoice")
@Operation(summary = "对账发票列表", method = "GET")
public MultiResponse<ReconciliationInvoiceVO> listReconciliationInvoice(@ModelAttribute @Validated ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
return MultiResponse.of(reconciliationInvoiceService.list(reconciliationInvoiceListQry));
}
@SaCheckLogin
@PostMapping("createReconciliationInvoice")
@Operation(summary = "创建对账发票", method = "POST")
public SingleResponse<ReconciliationInvoiceVO> createReconciliationInvoice(@RequestBody @Validated ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
return SingleResponse.of(reconciliationInvoiceService.create(reconciliationInvoiceCreateCmd));
}
@SaCheckLogin
@GetMapping("showReconciliationInvoice")
@Operation(summary = "对账发票详情", method = "GET")
public SingleResponse<ReconciliationInvoiceVO> showReconciliationInvoice(@ModelAttribute @Validated ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
return SingleResponse.of(reconciliationInvoiceService.show(reconciliationInvoiceShowQry));
}
@SaCheckLogin
@GetMapping("pageReconciliationInvoice")
@Operation(summary = "对账发票列表", method = "GET")
public PageResponse<ReconciliationInvoiceVO> pageReconciliationInvoice(@ModelAttribute @Validated ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
PageDTO<ReconciliationInvoiceVO> page = reconciliationInvoiceService.page(reconciliationInvoicePageQry);
return PageResponse.of(page.getRecords(), (int) page.getTotal(), (int) page.getSize(), (int) page.getCurrent());
}
@SaCheckLogin
@RequestMapping(value = "updateReconciliationInvoice", method = {RequestMethod.PATCH, RequestMethod.PUT})
@Operation(summary = "对账发票更新", method = "PATCH")
public SingleResponse<ReconciliationInvoiceVO> updateReconciliationInvoice(@RequestBody @Validated ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
return SingleResponse.of(reconciliationInvoiceService.update(reconciliationInvoiceUpdateCmd));
}
@SaCheckLogin
@DeleteMapping("destroyReconciliationInvoice")
@Operation(summary = "对账发票删除", method = "DELETE")
public Response destroyReconciliationInvoice(@RequestBody @Validated ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
reconciliationInvoiceService.destroy(reconciliationInvoiceDestroyCmd);
return Response.buildSuccess();
}
}

View File

@ -1,79 +0,0 @@
package com.xunhong.erp.turbo.admin.controller;
import cn.dev33.satoken.annotation.SaCheckLogin;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.xunhong.erp.turbo.api.biz.api.ReconciliationPaymentServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentDestroyCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentPageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @author shenyifei
*/
@Tag(name = "ReconciliationPayment", description = "对账付款管理")
@RestController("operationReconciliationPaymentController")
@RequestMapping(value = "/operation")
@RequiredArgsConstructor
public class ReconciliationPaymentController {
@DubboReference(version = "1.0.0")
private final ReconciliationPaymentServiceI reconciliationPaymentService;
@SaCheckLogin
@GetMapping("listReconciliationPayment")
@Operation(summary = "对账付款列表", method = "GET")
public MultiResponse<ReconciliationPaymentVO> listReconciliationPayment(@ModelAttribute @Validated ReconciliationPaymentListQry reconciliationPaymentListQry) {
return MultiResponse.of(reconciliationPaymentService.list(reconciliationPaymentListQry));
}
@SaCheckLogin
@PostMapping("createReconciliationPayment")
@Operation(summary = "创建对账付款", method = "POST")
public SingleResponse<ReconciliationPaymentVO> createReconciliationPayment(@RequestBody @Validated ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
return SingleResponse.of(reconciliationPaymentService.create(reconciliationPaymentCreateCmd));
}
@SaCheckLogin
@GetMapping("showReconciliationPayment")
@Operation(summary = "对账付款详情", method = "GET")
public SingleResponse<ReconciliationPaymentVO> showReconciliationPayment(@ModelAttribute @Validated ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
return SingleResponse.of(reconciliationPaymentService.show(reconciliationPaymentShowQry));
}
@SaCheckLogin
@GetMapping("pageReconciliationPayment")
@Operation(summary = "对账付款列表", method = "GET")
public PageResponse<ReconciliationPaymentVO> pageReconciliationPayment(@ModelAttribute @Validated ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
PageDTO<ReconciliationPaymentVO> page = reconciliationPaymentService.page(reconciliationPaymentPageQry);
return PageResponse.of(page.getRecords(), (int) page.getTotal(), (int) page.getSize(), (int) page.getCurrent());
}
@SaCheckLogin
@RequestMapping(value = "updateReconciliationPayment", method = {RequestMethod.PATCH, RequestMethod.PUT})
@Operation(summary = "对账付款更新", method = "PATCH")
public SingleResponse<ReconciliationPaymentVO> updateReconciliationPayment(@RequestBody @Validated ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
return SingleResponse.of(reconciliationPaymentService.update(reconciliationPaymentUpdateCmd));
}
@SaCheckLogin
@DeleteMapping("destroyReconciliationPayment")
@Operation(summary = "对账付款删除", method = "DELETE")
public Response destroyReconciliationPayment(@RequestBody @Validated ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
reconciliationPaymentService.destroy(reconciliationPaymentDestroyCmd);
return Response.buildSuccess();
}
}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,19 +0,0 @@
package com.xunhong.erp.turbo.biz.app.assembler;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;
/**
* @author shenyifei
*/
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, uses = {OrderAssembler.class})
public interface DealerAccountRecordAssembler {
@Mapping(target = "orderVO", source = "order")
@Mapping(target = "orderShipVO", source = "orderShip")
@Mapping(target = "dealerVO", source = "dealer")
DealerAccountRecordVO toDealerAccountRecordVO(DealerAccountRecord dealerAccountRecord);
}

View File

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

View File

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

View File

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

View File

@ -1,19 +0,0 @@
package com.xunhong.erp.turbo.biz.app.assembler;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;
/**
* @author shenyifei
*/
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationAssembler {
@Mapping(target = "dealerVO", source = "dealer")
@Mapping(target = "companyVO", source = "company")
@Mapping(target = "orderShipVOList", source = "orderShipList")
ReconciliationVO toReconciliationVO(Reconciliation reconciliation);
}

View File

@ -1,19 +0,0 @@
package com.xunhong.erp.turbo.biz.app.assembler;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;
/**
* @author shenyifei
*/
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationInvoiceAssembler {
@Mapping(target = "dealerVO", source = "dealer")
@Mapping(target = "dealerPaymentAccountVO", source = "dealerPaymentAccount")
@Mapping(target = "companyVO", source = "company")
ReconciliationInvoiceVO toReconciliationInvoiceVO(ReconciliationInvoice reconciliationInvoice);
}

View File

@ -1,15 +0,0 @@
package com.xunhong.erp.turbo.biz.app.assembler;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
/**
* @author shenyifei
*/
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ReconciliationPaymentAssembler {
ReconciliationPaymentVO toReconciliationPaymentVO(ReconciliationPayment reconciliationPayment);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.app.assembler.DealerAccountRecordAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordCreateCmdExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.save(dealerAccountRecordCreateCmd);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
}
}

View File

@ -1,22 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordDestroyCmd;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordDestroyCmdExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway;
public void execute(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
dealerAccountRecordGateway.destroy(dealerAccountRecordDestroyCmd);
}
}

View File

@ -1,27 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.app.assembler.DealerAccountRecordAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordUpdateCmdExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.update(dealerAccountRecordUpdateCmd);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,26 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationCompleteCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationCompleteCmdExe {
private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler;
public ReconciliationVO execute(ReconciliationCompleteCmd reconciliationCompleteCmd) {
Reconciliation reconciliation = reconciliationGateway.complete(reconciliationCompleteCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationCreateCmdExe {
private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationCreateCmd reconciliationCreateCmd) {
Reconciliation reconciliation = reconciliationGateway.save(reconciliationCreateCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation);
}
}

View File

@ -1,22 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationDestroyCmd;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationDestroyCmdExe {
private final ReconciliationGateway reconciliationGateway;
public void execute(ReconciliationDestroyCmd reconciliationDestroyCmd) {
reconciliationGateway.destroy(reconciliationDestroyCmd);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationInvoiceAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoiceCreateCmdExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceCreateCmd reconciliationInvoiceCreateCmd) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.save(reconciliationInvoiceCreateCmd);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
}
}

View File

@ -1,22 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceDestroyCmd;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoiceDestroyCmdExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public void execute(ReconciliationInvoiceDestroyCmd reconciliationInvoiceDestroyCmd) {
reconciliationInvoiceGateway.destroy(reconciliationInvoiceDestroyCmd);
}
}

View File

@ -1,27 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationInvoiceUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationInvoiceAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoiceUpdateCmdExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceUpdateCmd reconciliationInvoiceUpdateCmd) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.update(reconciliationInvoiceUpdateCmd);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationPaymentAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentCreateCmdExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentCreateCmd reconciliationPaymentCreateCmd) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.save(reconciliationPaymentCreateCmd);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
}
}

View File

@ -1,22 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentDestroyCmd;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentDestroyCmdExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public void execute(ReconciliationPaymentDestroyCmd reconciliationPaymentDestroyCmd) {
reconciliationPaymentGateway.destroy(reconciliationPaymentDestroyCmd);
}
}

View File

@ -1,27 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationPaymentUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationPaymentAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentUpdateCmdExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentUpdateCmd reconciliationPaymentUpdateCmd) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.update(reconciliationPaymentUpdateCmd);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
}
}

View File

@ -1,27 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.cmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.ReconciliationUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationUpdateCmdExe {
private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationUpdateCmd reconciliationUpdateCmd) {
Reconciliation reconciliation = reconciliationGateway.update(reconciliationUpdateCmd);
return reconciliationAssembler.toReconciliationVO(reconciliation);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,30 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordListQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.app.assembler.DealerAccountRecordAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordListQryExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway;
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
public List<DealerAccountRecordVO> execute(DealerAccountRecordListQry dealerAccountRecordListQry) {
List<DealerAccountRecord> dealerAccountRecordList = dealerAccountRecordGateway.list(dealerAccountRecordListQry);
return dealerAccountRecordList.stream().map(dealerAccountRecordAssembler::toDealerAccountRecordVO).toList();
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordPageQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.app.assembler.DealerAccountRecordAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordPageQryExe {
private final DealerAccountRecordGateway dealerAccountRecordGateway;
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
public IPage<DealerAccountRecordVO> execute(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
IPage<DealerAccountRecord> page = dealerAccountRecordGateway.page(dealerAccountRecordPageQry);
return page.convert(dealerAccountRecordAssembler::toDealerAccountRecordVO);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.biz.app.assembler.DealerAccountRecordAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.DealerAccountRecord;
import com.xunhong.erp.turbo.biz.domain.gateway.DealerAccountRecordGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class DealerAccountRecordShowQryExe {
private final DealerAccountRecordAssembler dealerAccountRecordAssembler;
private final DealerAccountRecordGateway dealerAccountRecordGateway;
public DealerAccountRecordVO execute(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
DealerAccountRecord dealerAccountRecord = dealerAccountRecordGateway.show(dealerAccountRecordShowQry);
return dealerAccountRecordAssembler.toDealerAccountRecordVO(dealerAccountRecord);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,30 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoiceListQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationInvoiceAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoiceListQryExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
public List<ReconciliationInvoiceVO> execute(ReconciliationInvoiceListQry reconciliationInvoiceListQry) {
List<ReconciliationInvoice> reconciliationInvoiceList = reconciliationInvoiceGateway.list(reconciliationInvoiceListQry);
return reconciliationInvoiceList.stream().map(reconciliationInvoiceAssembler::toReconciliationInvoiceVO).toList();
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoicePageQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationInvoiceAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoicePageQryExe {
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
public IPage<ReconciliationInvoiceVO> execute(ReconciliationInvoicePageQry reconciliationInvoicePageQry) {
IPage<ReconciliationInvoice> page = reconciliationInvoiceGateway.page(reconciliationInvoicePageQry);
return page.convert(reconciliationInvoiceAssembler::toReconciliationInvoiceVO);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationInvoiceShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationInvoiceVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationInvoiceAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationInvoice;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationInvoiceGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationInvoiceShowQryExe {
private final ReconciliationInvoiceAssembler reconciliationInvoiceAssembler;
private final ReconciliationInvoiceGateway reconciliationInvoiceGateway;
public ReconciliationInvoiceVO execute(ReconciliationInvoiceShowQry reconciliationInvoiceShowQry) {
ReconciliationInvoice reconciliationInvoice = reconciliationInvoiceGateway.show(reconciliationInvoiceShowQry);
return reconciliationInvoiceAssembler.toReconciliationInvoiceVO(reconciliationInvoice);
}
}

View File

@ -1,30 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationListQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationListQryExe {
private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler;
public List<ReconciliationVO> execute(ReconciliationListQry reconciliationListQry) {
List<Reconciliation> reconciliationList = reconciliationGateway.list(reconciliationListQry);
return reconciliationList.stream().map(reconciliationAssembler::toReconciliationVO).toList();
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPageQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPageQryExe {
private final ReconciliationGateway reconciliationGateway;
private final ReconciliationAssembler reconciliationAssembler;
public IPage<ReconciliationVO> execute(ReconciliationPageQry reconciliationPageQry) {
IPage<Reconciliation> page = reconciliationGateway.page(reconciliationPageQry);
return page.convert(reconciliationAssembler::toReconciliationVO);
}
}

View File

@ -1,30 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentListQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationPaymentAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentListQryExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
public List<ReconciliationPaymentVO> execute(ReconciliationPaymentListQry reconciliationPaymentListQry) {
List<ReconciliationPayment> reconciliationPaymentList = reconciliationPaymentGateway.list(reconciliationPaymentListQry);
return reconciliationPaymentList.stream().map(reconciliationPaymentAssembler::toReconciliationPaymentVO).toList();
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentPageQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationPaymentAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentPageQryExe {
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
public IPage<ReconciliationPaymentVO> execute(ReconciliationPaymentPageQry reconciliationPaymentPageQry) {
IPage<ReconciliationPayment> page = reconciliationPaymentGateway.page(reconciliationPaymentPageQry);
return page.convert(reconciliationPaymentAssembler::toReconciliationPaymentVO);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationPaymentShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationPaymentVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationPaymentAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.ReconciliationPayment;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationPaymentGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationPaymentShowQryExe {
private final ReconciliationPaymentAssembler reconciliationPaymentAssembler;
private final ReconciliationPaymentGateway reconciliationPaymentGateway;
public ReconciliationPaymentVO execute(ReconciliationPaymentShowQry reconciliationPaymentShowQry) {
ReconciliationPayment reconciliationPayment = reconciliationPaymentGateway.show(reconciliationPaymentShowQry);
return reconciliationPaymentAssembler.toReconciliationPaymentVO(reconciliationPayment);
}
}

View File

@ -1,29 +0,0 @@
package com.xunhong.erp.turbo.biz.app.executor.query;
import com.xunhong.erp.turbo.api.biz.dto.qry.ReconciliationShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.ReconciliationVO;
import com.xunhong.erp.turbo.biz.app.assembler.ReconciliationAssembler;
import com.xunhong.erp.turbo.biz.domain.entity.Reconciliation;
import com.xunhong.erp.turbo.biz.domain.gateway.ReconciliationGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @author shenyifei
*/
@Slf4j
@Component
@RequiredArgsConstructor
public class ReconciliationShowQryExe {
private final ReconciliationAssembler reconciliationAssembler;
private final ReconciliationGateway reconciliationGateway;
public ReconciliationVO execute(ReconciliationShowQry reconciliationShowQry) {
Reconciliation reconciliation = reconciliationGateway.show(reconciliationShowQry);
return reconciliationAssembler.toReconciliationVO(reconciliation);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,71 +0,0 @@
package com.xunhong.erp.turbo.biz.app.service;
import com.xunhong.erp.turbo.api.biz.api.DealerAccountRecordServiceI;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordCreateCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordDestroyCmd;
import com.xunhong.erp.turbo.api.biz.dto.cmd.DealerAccountRecordUpdateCmd;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordListQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordPageQry;
import com.xunhong.erp.turbo.api.biz.dto.qry.DealerAccountRecordShowQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.DealerAccountRecordVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import com.xunhong.erp.turbo.biz.app.executor.cmd.DealerAccountRecordCreateCmdExe;
import com.xunhong.erp.turbo.biz.app.executor.cmd.DealerAccountRecordDestroyCmdExe;
import com.xunhong.erp.turbo.biz.app.executor.cmd.DealerAccountRecordUpdateCmdExe;
import com.xunhong.erp.turbo.biz.app.executor.query.DealerAccountRecordListQryExe;
import com.xunhong.erp.turbo.biz.app.executor.query.DealerAccountRecordPageQryExe;
import com.xunhong.erp.turbo.biz.app.executor.query.DealerAccountRecordShowQryExe;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author shenyifei
*/
@Slf4j
@Service
@DubboService(interfaceClass = DealerAccountRecordServiceI.class, version = "1.0.0")
@RequiredArgsConstructor
public class DealerAccountRecordServiceImpl implements DealerAccountRecordServiceI {
private final DealerAccountRecordCreateCmdExe dealerAccountRecordCreateCmdExe;
private final DealerAccountRecordUpdateCmdExe dealerAccountRecordUpdateCmdExe;
private final DealerAccountRecordPageQryExe dealerAccountRecordPageQryExe;
private final DealerAccountRecordListQryExe dealerAccountRecordListQryExe;
private final DealerAccountRecordShowQryExe dealerAccountRecordShowQryExe;
private final DealerAccountRecordDestroyCmdExe dealerAccountRecordDestroyCmdExe;
@Override
public DealerAccountRecordVO create(DealerAccountRecordCreateCmd dealerAccountRecordCreateCmd) {
return dealerAccountRecordCreateCmdExe.execute(dealerAccountRecordCreateCmd);
}
@Override
public PageDTO<DealerAccountRecordVO> page(DealerAccountRecordPageQry dealerAccountRecordPageQry) {
return PageDTO.of(dealerAccountRecordPageQryExe.execute(dealerAccountRecordPageQry));
}
@Override
public List<DealerAccountRecordVO> list(DealerAccountRecordListQry dealerAccountRecordListQry) {
return dealerAccountRecordListQryExe.execute(dealerAccountRecordListQry);
}
@Override
public DealerAccountRecordVO update(DealerAccountRecordUpdateCmd dealerAccountRecordUpdateCmd) {
return dealerAccountRecordUpdateCmdExe.execute(dealerAccountRecordUpdateCmd);
}
@Override
public DealerAccountRecordVO show(DealerAccountRecordShowQry dealerAccountRecordShowQry) {
return dealerAccountRecordShowQryExe.execute(dealerAccountRecordShowQry);
}
@Override
public void destroy(DealerAccountRecordDestroyCmd dealerAccountRecordDestroyCmd) {
dealerAccountRecordDestroyCmdExe.execute(dealerAccountRecordDestroyCmd);
}
}

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More