Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
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 98bb7dee
authored
Jun 02, 2026
by
imwangxiaozhou
Committed by
胡悦
Jul 01, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(wecom客户群编排服务): 处理已删除客户记录复活的场景
更新已重新出现的已删除客户记录的状态与信息,避免创建重复的客户群条目,并记录对应的操作日志。
1 parent
fbfe63e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
workspace/agent-admin/backend/app/service/wecom_customer_group_orchestration_service.py
workspace/agent-admin/backend/app/service/wecom_customer_group_orchestration_service.py
View file @
98bb7de
...
...
@@ -371,6 +371,32 @@ class WeComCustomerGroupOrchestrationService:
record
.
customer_name
=
customer_name
continue
customer_name
=
str
(
item
.
get
(
"contact_name"
)
or
item
.
get
(
"display_name"
)
or
""
)
existing
=
(
self
.
db
.
query
(
WeComCustomerGroup
)
.
filter
(
WeComCustomerGroup
.
bot_id
==
bot_id
,
WeComCustomerGroup
.
customer_contact_id
==
cid
,
)
.
first
()
)
if
existing
is
not
None
:
existing
.
is_deleted
=
False
existing
.
group_status
=
"pending"
existing
.
customer_name
=
customer_name
existing
.
group_id
=
None
existing
.
group_name
=
None
existing
.
group_create_request_id
=
None
existing
.
member_bot_ids
=
[
m
.
bot_id
for
m
in
member_bots
]
logger
.
info
(
format_job_log
(
"全量对比复活已删除客户:机器人[
%
s] 客户[
%
s](contact_id=
%
s)"
%
(
bot
.
bot_name
or
bot
.
bot_id
,
customer_name
or
"-"
,
cid
)
)
)
self
.
db
.
flush
()
continue
new_record
=
WeComCustomerGroup
(
customer_contact_id
=
cid
,
customer_name
=
customer_name
,
...
...
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