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 80dfe85a
authored
Jul 13, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_scheduleresult0713' into 'develop'
修改 See merge request !225
2 parents
e2a7eb8e
06e0ac64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
View file @
80dfe85
...
@@ -276,7 +276,7 @@ public class ScheduleServiceImpl implements ScheduleService {
...
@@ -276,7 +276,7 @@ public class ScheduleServiceImpl implements ScheduleService {
List
<
OrderRequest
>
emtpy
=
new
ArrayList
<>();
List
<
OrderRequest
>
emtpy
=
new
ArrayList
<>();
HashMap
<
String
,
Integer
>
skillCount
=
new
HashMap
<>();
HashMap
<
String
,
Integer
>
skillCount
er
=
new
HashMap
<>();
Map
<
String
,
List
<
OrderRequest
>>
cc
=
orders
.
stream
().
collect
(
Collectors
.
groupingBy
(
OrderRequest:
:
getSkill
));
Map
<
String
,
List
<
OrderRequest
>>
cc
=
orders
.
stream
().
collect
(
Collectors
.
groupingBy
(
OrderRequest:
:
getSkill
));
for
(
Map
.
Entry
<
String
,
List
<
OrderRequest
>>
entry:
cc
.
entrySet
()){
for
(
Map
.
Entry
<
String
,
List
<
OrderRequest
>>
entry:
cc
.
entrySet
()){
...
@@ -284,15 +284,15 @@ public class ScheduleServiceImpl implements ScheduleService {
...
@@ -284,15 +284,15 @@ public class ScheduleServiceImpl implements ScheduleService {
Integer
count
=
entry
.
getValue
().
size
();
Integer
count
=
entry
.
getValue
().
size
();
String
skillCategory
=
skillMapping
.
get
(
skill
);
String
skillCategory
=
skillMapping
.
get
(
skill
);
Integer
v
=
skillCount
.
getOrDefault
(
skillCategory
,
0
);
Integer
v
=
skillCount
er
.
getOrDefault
(
skillCategory
,
0
);
v
+=
count
;
v
+=
count
;
skillCount
.
put
(
skillCategory
,
v
);
skillCount
er
.
put
(
skillCategory
,
v
);
}
}
s
.
setTotal
(
orders
.
size
());
s
.
setTotal
(
orders
.
size
());
s
.
setInstallNum
(
cc
.
getOrDefault
(
"安装"
,
emtpy
).
size
(
));
s
.
setInstallNum
(
skillCounter
.
getOrDefault
(
"安装"
,
0
));
s
.
setFixNum
(
cc
.
getOrDefault
(
"维修"
,
emtpy
).
size
(
));
s
.
setFixNum
(
skillCounter
.
getOrDefault
(
"维修"
,
0
));
s
.
setDesignNum
(
cc
.
getOrDefault
(
"整改"
,
emtpy
).
size
(
));
s
.
setDesignNum
(
skillCounter
.
getOrDefault
(
"整改"
,
0
));
s
.
setCleanNum
(
cc
.
getOrDefault
(
"清洁保养"
,
emtpy
).
size
(
));
s
.
setCleanNum
(
skillCounter
.
getOrDefault
(
"清洁保养"
,
0
));
return
s
;
return
s
;
}
}
...
...
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