Commit 91088814b41d48b918343ca569825cfc3568dbb3
1 parent
a716b5ef
feat(tax-central): 实现永友连接管理器并新增连接配置类
- 修改 YongYouConnectionManager 类继承自 AbstractConnectionManager<YongYouConnections> - 重写 getConnection 方法以返回 YongYouConnections 实例 - 新增 YongYouConnections 配置类用于封装连接参数 - 引入 JsonUtils 工具类用于对象转换 - 添加 YongYouConnections 类型导入依赖
Showing
2 changed files
with
14 additions
and
3 deletions
tax-central/src/main/java/com/diligrp/tax/central/connect/YongYouConnections.java
0 → 100644
tax-central/src/main/java/com/diligrp/tax/central/manager/impl/YongYouConnectionManager.java
| 1 | 1 | package com.diligrp.tax.central.manager.impl; |
| 2 | 2 | |
| 3 | +import com.diligrp.tax.central.connect.YongYouConnections; | |
| 3 | 4 | import com.diligrp.tax.central.manager.AbstractConnectionManager; |
| 4 | 5 | import com.diligrp.tax.central.model.TenantPipeline; |
| 5 | 6 | import com.diligrp.tax.central.type.SystemType; |
| 7 | +import com.diligrp.tax.central.utils.JsonUtils; | |
| 6 | 8 | import com.kingdee.bos.webapi.entity.IdentifyInfo; |
| 7 | 9 | import org.springframework.stereotype.Component; |
| 8 | 10 | |
| ... | ... | @@ -12,14 +14,14 @@ import org.springframework.stereotype.Component; |
| 12 | 14 | * @Version: todo |
| 13 | 15 | */ |
| 14 | 16 | @Component |
| 15 | -public class YongYouConnectionManager extends AbstractConnectionManager<Object> { | |
| 17 | +public class YongYouConnectionManager extends AbstractConnectionManager<YongYouConnections> { | |
| 16 | 18 | @Override |
| 17 | 19 | public SystemType markSystemType() { |
| 18 | 20 | return SystemType.YONG_YOU; |
| 19 | 21 | } |
| 20 | 22 | |
| 21 | 23 | @Override |
| 22 | - public IdentifyInfo getConnection(TenantPipeline tenantPipeline) { | |
| 23 | - return null; | |
| 24 | + public YongYouConnections getConnection(TenantPipeline tenantPipeline) { | |
| 25 | + return JsonUtils.convertValue(tenantPipeline.getParams(), YongYouConnections.class); | |
| 24 | 26 | } |
| 25 | 27 | } | ... | ... |