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
85a08dd5
Commit
85a08dd5
authored
Feb 07, 2023
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仿真测试
parent
a361d2b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
config.json
config.json
+6
-5
gothrough_digging.py
gothrough/gothrough_digging.py
+9
-4
No files found.
config.json
View file @
85a08dd5
...
@@ -8,23 +8,23 @@
...
@@ -8,23 +8,23 @@
},
},
"mysql"
:
{
"mysql"
:
{
"host"
:
"1
92.168.9.152
"
,
"host"
:
"1
72.16.0.103
"
,
"port"
:
"3306"
,
"port"
:
"3306"
,
"user"
:
"root"
,
"user"
:
"root"
,
"password"
:
"Huituo@123"
,
"password"
:
"Huituo@123"
,
"database"
:
"
waytous
"
"database"
:
"
ht_zhunneng
"
},
},
"postgresql"
:
{
"postgresql"
:
{
"host"
:
"1
92.168.9.152
"
,
"host"
:
"1
72.16.0.103
"
,
"port"
:
"5432"
,
"port"
:
"5432"
,
"user"
:
"postgres"
,
"user"
:
"postgres"
,
"password"
:
"Huituo@123"
,
"password"
:
"Huituo@123"
,
"database"
:
"
shenbao_2021520
"
"database"
:
"
gis_zhunneng
"
},
},
"redis"
:
{
"redis"
:
{
"host"
:
"1
92.168.9.152
"
,
"host"
:
"1
72.16.0.103
"
,
"password"
:
"Huituo@123"
"password"
:
"Huituo@123"
}
}
}
}
\ No newline at end of file
gothrough/gothrough_digging.py
View file @
85a08dd5
...
@@ -17,7 +17,7 @@ from app import app
...
@@ -17,7 +17,7 @@ from app import app
import
uuid
import
uuid
@app.route
(
"/
redispatc
h"
,
methods
=
[
"POST"
])
@app.route
(
"/
go_throug
h"
,
methods
=
[
"POST"
])
def
redispatch_request
():
def
redispatch_request
():
# 获取报文数据
# 获取报文数据
data_json
=
request
.
get_json
()
data_json
=
request
.
get_json
()
...
@@ -25,11 +25,13 @@ def redispatch_request():
...
@@ -25,11 +25,13 @@ def redispatch_request():
# 车辆id
# 车辆id
request_truck_id
=
data_json
.
get
(
"truck_id"
)
request_truck_id
=
data_json
.
get
(
"truck_id"
)
request_truck_id
=
'
309705a0-5ddf-4559-b6c4-ee17a57677a
d'
request_truck_id
=
'
fb266860-f5b9-4180-8a52-40e638d048e
d'
# 调度开始时间
# 调度开始时间
rtd_start_time
=
datetime
.
now
()
rtd_start_time
=
datetime
.
now
()
return
jsonify
(
msg
=
"success"
,
code
=
0
)
# 初始化日志
# 初始化日志
set_log
()
set_log
()
# 获取日志器
# 获取日志器
...
@@ -134,8 +136,11 @@ def redispatch_request():
...
@@ -134,8 +136,11 @@ def redispatch_request():
# 装载区区分
# 装载区区分
# closer_area_id, further_area_id = area_analysis(excavators_id)
# closer_area_id, further_area_id = area_analysis(excavators_id)
closer_area_id
=
'f1d5f017-5134-65a0-f657-89eed06eacc1'
# closer_area_id = 'f1d5f017-5134-65a0-f657-89eed06eacc1'
further_area_id
=
'ef89f721-5134-3ef1-91e2-95b4e5004675'
# further_area_id = 'ef89f721-5134-3ef1-91e2-95b4e5004675'
closer_area_id
=
'7ff73575-2134-afd4-1065-d5d60e8751c9'
further_area_id
=
'79584290-1134-8b85-f4cc-1dcf64fc3456'
closer_excavator_id
,
further_excavator_id
=
DispatchInfo
.
load_excavator_dict
[
closer_area_id
],
\
closer_excavator_id
,
further_excavator_id
=
DispatchInfo
.
load_excavator_dict
[
closer_area_id
],
\
DispatchInfo
.
load_excavator_dict
[
further_area_id
]
DispatchInfo
.
load_excavator_dict
[
further_area_id
]
...
...
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