Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
auto_track_plugin
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
顾海波
2025-02-28 14:38:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
60a669d318fb65e0c2cb27bc578bdf0aa6b8f7f1
60a669d3
1 parent
960fcc69
【优化】批量删除数据
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
lib/auto_track/config/queue.dart
lib/auto_track/config/queue.dart
View file @
60a669d
...
...
@@ -261,10 +261,8 @@ class AutoTrackQueue {
AutoTrackConfigManager
.
instance
.
getToken
(
true
);
}
else
{
//批量删除
for
(
var
event
in
events
)
{
await
database
!.
delete
(
"track"
,
where:
"id = ?"
,
whereArgs:
[
event
[
'id'
]]);
}
final
ids
=
events
.
map
((
event
)
=>
event
[
'id'
]).
toList
();
await
database
!.
delete
(
"track"
,
where:
"id IN (
${List.filled(ids.length, '?').join(',')}
)"
,
whereArgs:
ids
);
}
}
catch
(
e
)
{
AutoTrackLogger
.
getInstance
().
debug
(
"JSON 解析错误:
$e
"
);
...
...
Please
register
or
login
to post a comment