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 ba5330cb
authored
Jul 21, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口新增返回值
1 parent
6b25950e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
View file @
ba5330c
...
@@ -398,28 +398,25 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -398,28 +398,25 @@ public class EngineerServiceImpl implements EngineerService {
List
<
EngineerBusinessListResp
.
EngineerBusiness
>
items
=
new
ArrayList
<>();
List
<
EngineerBusinessListResp
.
EngineerBusiness
>
items
=
new
ArrayList
<>();
for
(
EngineerInfo
e
:
engineers
)
{
for
(
EngineerInfo
e
:
engineers
)
{
EngineerBusinessListResp
.
EngineerBusiness
item
=
new
EngineerBusinessListResp
.
EngineerBusiness
();
EngineerBusinessListResp
.
EngineerBusiness
item
=
new
EngineerBusinessListResp
.
EngineerBusiness
();
EngineerBusiness
b
=
buss
.
getOrDefault
(
e
.
getEngineerCode
(),
null
);
if
(
b
==
null
){
// 若没有配置,则不返回, 由同步程序初始化
continue
;
}
item
.
setEngineerCode
(
e
.
getEngineerCode
());
item
.
setEngineerCode
(
e
.
getEngineerCode
());
item
.
setGroupName
(
groupNames
.
getOrDefault
(
e
.
getGroupId
(),
""
));
item
.
setGroupName
(
groupNames
.
getOrDefault
(
e
.
getGroupId
(),
""
));
item
.
setEngineerName
(
e
.
getName
());
item
.
setEngineerName
(
e
.
getName
());
item
.
setKind
((
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
);
item
.
setKind
((
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
);
EngineerBusiness
b
=
buss
.
getOrDefault
(
e
.
getEngineerCode
(),
null
);
if
(
b
==
null
)
{
item
.
setAddress
(
""
);
item
.
setLocation
(
""
);
item
.
setDeparture
(
1
);
item
.
setMaxMinute
(
0
);
item
.
setMaxNum
(
0
);
item
.
setPriority
(
1
);
}
else
{
item
.
setAddress
(
b
.
getAddress
());
item
.
setAddress
(
b
.
getAddress
());
item
.
setLocation
(
String
.
format
(
"%s,%s"
,
b
.
getX
(),
b
.
getY
()));
item
.
setLocation
(
String
.
format
(
"%s,%s"
,
b
.
getX
(),
b
.
getY
()));
item
.
setWorkOn
(
b
.
getWorkOn
());
item
.
setWorkOff
(
b
.
getWorkOff
());
item
.
setTransportMode
(
b
.
getTransportMode
());
item
.
setDeparture
(
b
.
getDeparture
());
item
.
setDeparture
(
b
.
getDeparture
());
item
.
setMaxMinute
(
b
.
getMaxMinute
());
item
.
setMaxMinute
(
b
.
getMaxMinute
());
item
.
setMaxNum
(
b
.
getMaxNum
());
item
.
setMaxNum
(
b
.
getMaxNum
());
item
.
setPriority
(
b
.
getPriority
());
item
.
setPriority
(
b
.
getPriority
());
}
items
.
add
(
item
);
items
.
add
(
item
);
}
}
return
items
;
return
items
;
...
...
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