Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
db_gpt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linyangyang
db_gpt
Commits
b72b0a2b
Commit
b72b0a2b
authored
Aug 28, 2024
by
张会鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除分组判断逻辑删除
parent
f07cbbbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
crud.py
dbgpt/app/apps/vadmin/media/crud.py
+4
-1
No files found.
dbgpt/app/apps/vadmin/media/crud.py
View file @
b72b0a2b
...
...
@@ -43,7 +43,10 @@ class MediaDal(DalBase):
await
self
.
db
.
execute
(
sql
)
async
def
get_count_by_groupIds
(
self
,
ids
:
list
)
->
int
:
stmt
=
select
(
func
.
count
(
self
.
model
.
id
))
.
where
(
self
.
model
.
group_id
.
in_
(
ids
))
stmt
=
select
(
func
.
count
(
self
.
model
.
id
))
.
where
(
and_
(
self
.
model
.
group_id
.
in_
(
ids
),
self
.
model
.
is_delete
==
0
))
result
=
await
self
.
db
.
execute
(
stmt
)
count
=
result
.
scalar
()
return
count
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment