Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
backend-knowledge-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 05fe81bf
authored
Mar 26, 2026
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复错别字
1 parent
83aaf636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
42 deletions
business/业财一体化中间件/rpc-dj-financila业务梳理.md
business/业财一体化中间件/rpc-dj-financila业务梳理.md
View file @
05fe81b
# 业财一体化中间件设计文档
## 核心模块
### 宁波财资系统
#### 表结构梳理
-
nb_cb_account 宁波银行账户信息
-
nb_cb_acc_detail 宁波银行交易明细
-
nb_cb_acc_detail_log 宁波银行交易操作日志,含明细与回单操作日志
...
...
@@ -21,7 +25,7 @@ erDiagram
nb_cb_account {
string bank_acc PK "银行账户"
}
nb_cb_acc_detail {
bigint id PK "主键ID"
string bank_acc FK "银行账户"
...
...
@@ -30,53 +34,53 @@ erDiagram
string match_code "匹配码"
int cd_sign "借贷标志(1借方)"
}
nb_cb_acc_detail_log {
bigint id PK "主键ID"
bigint acc_detail_id FK "交易明细ID"
}
nb_cb_receipt {
bigint id PK "主键ID"
string bank_acc FK "银行账户"
string sub_serial_no "子流水号"
string match_code "匹配码"
}
nb_cb_receipt_query_task {
bigint id PK "主键ID"
}
nb_cb_transfer {
bigint id PK "主键ID"
string pay_acc FK "付款账户"
string serial_no "流水号"
}
nb_cb_transfer_log {
bigint id PK "主键ID"
bigint transfer_id FK "转账记录ID"
}
nb_cb_batch_transfer {
bigint id PK "主键ID"
}
nb_cb_batch_transfer_detail {
bigint id PK "主键ID"
bigint batch_transfer_id FK "批量转账ID"
string acc_detail_serial_no "交易明细流水号"
}
nb_cb_batch_transfer_log {
bigint id PK "主键ID"
bigint batch_transfer_id FK "批量转账ID"
}
nb_cb_batch_transfer_edit_record {
bigint id PK "主键ID"
}
%% 关联关系
nb_cb_account ||--o{ nb_cb_acc_detail : "bank_acc = bank_acc"
nb_cb_acc_detail ||--o{ nb_cb_acc_detail_log : "id = acc_detail_id"
...
...
@@ -90,7 +94,6 @@ erDiagram
nb_cb_batch_transfer_detail ||--o| nb_cb_acc_detail : "acc_detail_serial_no(cd_sign=1)"
```
### 企微oa
#### 表结构梳理
...
...
@@ -102,7 +105,7 @@ erDiagram
-
approval_template_detail 审批模板配置详情表
-
enterprise_bank_account 企业主体与银行卡对应关系表
####
E-R图
#### E-R图
```
mermaid
erDiagram
...
...
@@ -110,35 +113,35 @@ erDiagram
bigint id PK "主键ID"
string template_id "模板ID"
}
approval_template_detail {
bigint id PK "主键ID"
string template_id FK "模板ID"
}
approval_records {
bigint id PK "主键ID"
string sp_no "审批单号"
string template_id FK "模板ID"
string payer_entity "付款主体"
}
enterprise_bank_account {
bigint id PK "主键ID"
string enterprise_name "企业名称"
string bank_acc "银行账户"
}
oa_apply_transfer {
bigint id PK "主键ID"
string sp_no FK "审批单号"
}
oa_apply_batch_transfer {
bigint id PK "主键ID"
string sp_no FK "审批单号"
}
%% 关联关系
approval_template_config ||--o{ approval_records : "template_id = template_id"
approval_template_config ||--o{ approval_template_detail : "template_id = template_id"
...
...
@@ -147,8 +150,8 @@ erDiagram
approval_records ||--o| oa_apply_batch_transfer : "sp_no = sp_no"
```
### 企微oa&宁波财资系统整合
#### ER图
```
mermaid
...
...
@@ -158,40 +161,40 @@ erDiagram
bigint id PK "主键ID"
string template_id "模板ID"
}
approval_template_detail {
bigint id PK "主键ID"
string template_id FK "模板ID"
}
approval_records {
bigint id PK "主键ID"
string sp_no "审批单号"
string template_id FK "模板ID"
string payer_entity "付款主体"
}
enterprise_bank_account {
bigint id PK "主键ID"
string enterprise_name "企业名称"
string bank_acc "银行账户"
}
oa_apply_transfer {
bigint id PK "主键ID"
string sp_no FK "审批单号"
}
oa_apply_batch_transfer {
bigint id PK "主键ID"
string sp_no FK "审批单号"
}
%% ========== 宁波财资系统模块 ==========
nb_cb_account {
string bank_acc PK "银行账户"
}
nb_cb_acc_detail {
bigint id PK "主键ID"
string bank_acc FK "银行账户"
...
...
@@ -200,62 +203,62 @@ erDiagram
string match_code "匹配码"
int cd_sign "借贷标志(1借方)"
}
nb_cb_acc_detail_log {
bigint id PK "主键ID"
bigint acc_detail_id FK "交易明细ID"
}
nb_cb_receipt {
bigint id PK "主键ID"
string bank_acc FK "银行账户"
string sub_serial_no "子流水号"
string match_code "匹配码"
}
nb_cb_receipt_query_task {
bigint id PK "主键ID"
}
nb_cb_transfer {
bigint id PK "主键ID"
string pay_acc FK "付款账户"
string serial_no "流水号"
string dj_serial_no "审批单号"
}
nb_cb_transfer_log {
bigint id PK "主键ID"
bigint transfer_id FK "转账记录ID"
}
nb_cb_batch_transfer {
bigint id PK "主键ID"
string dj_serial_no "审批单号"
}
nb_cb_batch_transfer_detail {
bigint id PK "主键ID"
bigint batch_transfer_id FK "批量转账ID"
string acc_detail_serial_no "交易明细流水号"
}
nb_cb_batch_transfer_log {
bigint id PK "主键ID"
bigint batch_transfer_id FK "批量转账ID"
}
nb_cb_batch_transfer_edit_record {
bigint id PK "主键ID"
}
%% ========== 企微OA内部关联 ==========
approval_template_config ||--o{ approval_records : "template_id = template_id"
approval_template_config ||--o{ approval_template_detail : "template_id = template_id"
enterprise_bank_account ||--o{ approval_records : "enterprise_name = payer_entity"
approval_records ||--o| oa_apply_transfer : "sp_no = sp_no"
approval_records ||--o| oa_apply_batch_transfer : "sp_no = sp_no"
%% ========== 宁波财资系统内部关联 ==========
nb_cb_account ||--o{ nb_cb_acc_detail : "bank_acc = bank_acc"
nb_cb_acc_detail ||--o{ nb_cb_acc_detail_log : "id = acc_detail_id"
...
...
@@ -267,13 +270,16 @@ erDiagram
nb_cb_batch_transfer ||--o{ nb_cb_batch_transfer_detail : "id = batch_transfer_id"
nb_cb_batch_transfer ||--o{ nb_cb_batch_transfer_log : "id = batch_transfer_id"
nb_cb_batch_transfer_detail ||--o| nb_cb_acc_detail : "acc_detail_serial_no(cd_sign=1)"
%% ========== 两模块整合关联 ==========
approval_records ||--o| nb_cb_transfer : "sp_no = dj_serial_no"
approval_records ||--o| nb_cb_batch_transfer : "sp_no = dj_serial_no"
```
#### 流程图
整个流程图设计6个系统
-
其他业务系统
-
企业微信对接项目wechat-build-server
-
企微微信
...
...
@@ -284,6 +290,7 @@ erDiagram
##### 1、二手车企微oa付款流程
###### 前置配置
-
开通企微微信,获得企微管理后台管理员权限
-
开发企业微信对接项目
`wechat-build-server`
,完成企微oa相关接口对接(查询模板内容、发起审批、查询审批详情),配置企微微信id与D+商户号映射关系
-
登录企微微信管理后台,配置oa审批模板及审批人
...
...
@@ -293,6 +300,7 @@ erDiagram
###### 流程说明
**阶段一:业务系统发起审批**
1.
二手车业务系统 →
`rop-dj-smartcarlife`
HTTP接口
`dj.smartcarlife.api.nbcb.batch.transfer.oa`
2.
`rop-dj-smartcarlife`
调用
`wechat-build-server`
发起企微OA审批
3.
`wechat-build-server`
调用企微微信创建审批单,返回
`sp_no`
...
...
@@ -348,7 +356,7 @@ erDiagram
-
二手车业务系统定时调用
`rop-dj-smartcarlife`
HTTP接口
`dj.smartcarlife.api.nbcb.batch.transfer.query`
轮询审批和转账结果
> 注意:业财中间件-企微oa对外
暰
露的http接口层放在 `rop-dj-smartcarlife` 项目中,dubbo接口以及定时任务放在 `rpc-dj-financial` 中。
> 注意:业财中间件-企微oa对外
暴
露的http接口层放在 `rop-dj-smartcarlife` 项目中,dubbo接口以及定时任务放在 `rpc-dj-financial` 中。
###### Flowchart 流程图
...
...
@@ -518,8 +526,6 @@ sequenceDiagram
end
```
### 金蝶系统 todo
### 发票系统 todo
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment