Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
张晓彤
integrated-scheduling-v3
Commits
43533cf2
Commit
43533cf2
authored
May 27, 2025
by
Allvey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除下线车辆
parent
05f26b5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
dispatchInfo.py
data/dispatchInfo.py
+6
-0
truck.py
equipment/truck.py
+4
-0
No files found.
data/dispatchInfo.py
View file @
43533cf2
...
...
@@ -224,6 +224,12 @@ class DispatchInfo:
# add truck
truck_state
=
session_mysql
.
query
(
Equipment
)
.
filter_by
(
id
=
item
.
truck_id
)
.
first
()
# if truck_state is not None and truck_state.disabled == 1:
truck_uuid_to_name_dict
=
get_value
(
"truck_uuid_to_name_dict"
)
truck_name
=
truck_uuid_to_name_dict
[
item
.
truck_id
]
key_value_dict
=
redis2
.
hgetall
(
truck_name
)
is_online
=
key_value_dict
[
str_to_byte
(
'online'
)]
if
bytes
.
decode
(
is_online
)
not
in
[
"true"
or
"True"
]:
continue
if
item
.
group_id
not
in
cls
.
group_truck_dict
.
keys
():
cls
.
group_truck_dict
[
item
.
group_id
]
=
[
item
.
truck_id
]
else
:
...
...
equipment/truck.py
View file @
43533cf2
...
...
@@ -369,6 +369,10 @@ class TruckInfo(WalkManage):
session_mysql
.
commit
()
truck_id
=
self
.
truck_index_to_uuid_dict
[
i
]
truck_name
=
truck_uuid_to_name_dict
[
truck_id
]
key_value_dict
=
redis2
.
hgetall
(
truck_name
)
is_online
=
key_value_dict
[
str_to_byte
(
'online'
)]
if
bytes
.
decode
(
is_online
)
not
in
[
"true"
or
"True"
]:
continue
task
=
self
.
truck_current_task
[
self
.
truck_index_to_uuid_dict
[
i
]]
item
=
(
...
...
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