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 49ada179
authored
Jun 17, 2026
by
imwangxiaozhou
Committed by
胡悦
Jul 06, 2026
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(企业微信群组服务): 调整代理查询逻辑,返回删除状态并移除非删除过滤
同步更新测试用例以匹配新的返回数据结构
1 parent
3ecf63f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
workspace/agent-admin/backend/app/service/wecom_customer_group_orchestration_service.py
workspace/agent-admin/backend/tests/test_wecom_jobs_api.py
workspace/agent-admin/backend/app/service/wecom_customer_group_orchestration_service.py
View file @
49ada17
...
@@ -1416,7 +1416,6 @@ class WeComCustomerGroupOrchestrationService:
...
@@ -1416,7 +1416,6 @@ class WeComCustomerGroupOrchestrationService:
self
.
db
.
query
(
Agent
)
self
.
db
.
query
(
Agent
)
.
filter
(
.
filter
(
Agent
.
managed_user_id
.
in_
(
bot_row_ids
),
Agent
.
managed_user_id
.
in_
(
bot_row_ids
),
Agent
.
is_deleted
==
False
,
Agent
.
managed_user_id
.
isnot
(
None
),
Agent
.
managed_user_id
.
isnot
(
None
),
)
)
.
all
()
.
all
()
...
@@ -1427,6 +1426,7 @@ class WeComCustomerGroupOrchestrationService:
...
@@ -1427,6 +1426,7 @@ class WeComCustomerGroupOrchestrationService:
"bot_id"
:
bot_id_map
.
get
(
agent
.
managed_user_id
,
""
),
"bot_id"
:
bot_id_map
.
get
(
agent
.
managed_user_id
,
""
),
"is_steward"
:
bool
(
agent
.
is_steward
),
"is_steward"
:
bool
(
agent
.
is_steward
),
"status"
:
agent
.
status
.
value
if
agent
.
status
else
"enable"
,
"status"
:
agent
.
status
.
value
if
agent
.
status
else
"enable"
,
"is_deleted"
:
agent
.
is_deleted
or
False
,
}
}
for
agent
in
agent_rows
for
agent
in
agent_rows
if
agent
.
managed_user_id
in
bot_id_map
if
agent
.
managed_user_id
in
bot_id_map
...
...
workspace/agent-admin/backend/tests/test_wecom_jobs_api.py
View file @
49ada17
...
@@ -234,7 +234,7 @@ def test_dispatch_customer_group_messages_prefers_customer_group_id_and_marks_me
...
@@ -234,7 +234,7 @@ def test_dispatch_customer_group_messages_prefers_customer_group_id_and_marks_me
'group_name'
:
'alice-service'
,
'group_name'
:
'alice-service'
,
},
},
'agents'
:
[
'agents'
:
[
{
'agent_id'
:
10
,
'bot_id'
:
'managed_1'
,
'is_steward'
:
False
,
'status'
:
'enable'
},
{
'agent_id'
:
10
,
'bot_id'
:
'managed_1'
,
'is_steward'
:
False
,
'status'
:
'enable'
,
'is_deleted'
:
False
},
],
],
'messages'
:
[
'messages'
:
[
{
{
...
@@ -993,7 +993,7 @@ def test_pull_group_messages_dispatches_customer_group_payload():
...
@@ -993,7 +993,7 @@ def test_pull_group_messages_dispatches_customer_group_payload():
'group_name'
:
'张三专属服务群'
,
'group_name'
:
'张三专属服务群'
,
},
},
'agents'
:
[
'agents'
:
[
{
'agent_id'
:
10
,
'bot_id'
:
'managed_1'
,
'is_steward'
:
False
,
'status'
:
'enable'
},
{
'agent_id'
:
10
,
'bot_id'
:
'managed_1'
,
'is_steward'
:
False
,
'status'
:
'enable'
,
'is_deleted'
:
False
},
],
],
'messages'
:
[
'messages'
:
[
{
{
...
...
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