Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5f0bc92b
authored
Jul 10, 2023
by
张晓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug locationList
1 parent
d5daba54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SolveServiceImpl.java
project-dispatch/src/main/resources/application-dev.yaml
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/SolveServiceImpl.java
View file @
5f0bc92
...
...
@@ -107,6 +107,8 @@ public class SolveServiceImpl implements SolveService {
customerList
.
add
(
customer
);
});
log
.
info
(
"组织问题对象, customer-list, groupId:{}, batchNo:{}, customer-list:{}"
,
groupId
,
batchNo
,
customerList
);
// depotlist 技术员中收点列表
ArrayList
<
Depot
>
depotList
=
new
ArrayList
<
Depot
>();
// technicianList
...
...
@@ -116,10 +118,10 @@ public class SolveServiceImpl implements SolveService {
Depot
depot
=
new
Depot
(
engineer
.
getId
(),
engineer
.
getEngineerCode
(),
location
,
60
*
8
,
60
*
18
);
depotList
.
add
(
depot
);
log
.
info
(
"组织问题对象, groupId:{}, batchNo:{}, engineer-code:{}"
,
groupId
,
batchNo
,
engineer
.
getEngineerCode
());
log
.
info
(
"组织问题对象,
technicianList
groupId:{}, batchNo:{}, engineer-code:{}"
,
groupId
,
batchNo
,
engineer
.
getEngineerCode
());
List
<
String
>
skillList
=
queryEngineerSkills
(
engineer
.
getEngineerCode
());
log
.
info
(
"组织问题对象,
groupId:{}, batchNo:{}, engineer-code:{} , skills:{}"
,
groupId
,
batchNo
,
engineer
.
getEngineerCode
(),
String
.
join
(
";"
,
skillList
));
log
.
info
(
"组织问题对象,
technicianList groupId:{}, batchNo:{}, engineer-code:{} , skills:{}"
,
groupId
,
batchNo
,
engineer
.
getEngineerCode
(),
String
.
join
(
";"
,
skillList
));
// 距离偏好map
Map
<
String
,
Long
>
preferedLoctionDistanceMap
=
new
HashMap
<
String
,
Long
>();
...
...
@@ -134,6 +136,9 @@ public class SolveServiceImpl implements SolveService {
technicianList
.
add
(
vehicle
);
});
log
.
info
(
"组织问题对象, depotList-list, groupId:{}, batchNo:{}, depotList-list:{}"
,
groupId
,
batchNo
,
depotList
);
log
.
info
(
"组织问题对象, technician-list, groupId:{}, batchNo:{}, technician-list:{}"
,
groupId
,
batchNo
,
technicianList
);
//locationlist
List
<
Location
>
locationList
=
Stream
.
concat
(
depotList
.
stream
().
map
(
Depot:
:
getLocation
),
customerList
.
stream
().
map
(
Customer:
:
getLocation
)).
collect
(
Collectors
.
toList
());
...
...
project-dispatch/src/main/resources/application-dev.yaml
View file @
5f0bc92
...
...
@@ -27,9 +27,9 @@ spring:
enabled
:
false
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1:33
06
/saas_aftersale_test?serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://127.0.0.1:33
88
/saas_aftersale_test?serverTimezone=Asia/Shanghai
username
:
root
password
:
123456
78
password
:
123456
type
:
com.alibaba.druid.pool.DruidDataSource
jpa
:
...
...
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