Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
djscrm
/
scrm-account-doc
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 ccb20ccd
authored
Apr 19, 2022
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]周海宝的checklist-review
1 parent
dca772e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
2.1.0_四月份版本/1.6.0checklist-review.md
2.1.0_四月份版本/1.6.0checklist-review.md
View file @
ccb20cc
...
@@ -176,3 +176,35 @@
...
@@ -176,3 +176,35 @@
```
```
# 1.6.0版本 checklist-review
## 周海宝
### 1、idMapping
```
properties
#实现入口
项目:rpc-scrm-idmapping
代码入口:cn.com.glsx.idmapping.service方法oneIdCreated
#核心业务逻辑 (新增IdMapping实现)
1、判断事件的业务类型
2、查询当前主体的商户号映射的idMapping,如果没有,则取默认的商户号为0配置的idMapping
3、过滤出参加idmapping的映射的用户标识,并且按照优先级从高到低
4、记录envent事件,按照优先级从数据遍历查询oneid,添加分布式锁(防止重复oneId的生成)
5、返回oneId(库中未匹配到的,利用雪花算法生成唯一的oneiD)
---异步处理
6、当前商户未查到id关联的新增入库
7、查询到的
oneid不相同,并且value值相同----变更oneid
根据不同的实体处理不同的oneId变更逻辑
记录oneId变更日志
oneid相同,并且value值不相同
关联数量配置是N---新增关联
关联数量配置是1---删除之前的数据,新增数据
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