Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
platform
hg-smart
Commits
7789aafe
Commit
7789aafe
authored
Oct 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-19 生产驾驶舱接口调整
parent
faafef7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+12
-12
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
7789aafe
...
...
@@ -370,21 +370,21 @@ public class ServiceHGSC007 extends ServiceEPBase {
Optional
.
ofNullable
(
roleCompanyCode
).
orElse
(
new
ArrayList
<>()).
stream
().
forEach
(
code
->
{
factoryCodes
.
addAll
(
HGXSTools
.
XsOrg
.
queryByParent
(
code
,
OrgTypeEnum
.
FACTORY
.
getCode
()));
});
//List<Map<String,Object>> mapList = getOrg();
//factoryCodes.addAll(mapList);
List
list
=
factoryCodes
.
stream
()
.
filter
(
o
->
com
.
baosight
.
hggp
.
util
.
StringUtils
.
equals
(
o
.
getOrgType
(),
OrgTypeEnum
.
FACTORY
.
getCode
()))
.
map
(
item
->
new
Factory
(
item
.
getCompanyCode
(),
item
.
getCompanyName
(),
item
.
getFactoryCode
(),
item
.
getFactoryName
())).
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toMap
(
Factory:
:
getFactoryCode
,
Function
.
identity
(),
(
oldValue
,
newValue
)
->
oldValue
),
// 将Map转回List
m
->
new
ArrayList
<>(
m
.
values
())
));
inInfo
.
set
(
EiConstant
.
resultBlock
,
list
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"APP查询工厂失败"
);
}
List
list
=
factoryCodes
.
stream
()
.
filter
(
o
->
com
.
baosight
.
hggp
.
util
.
StringUtils
.
equals
(
o
.
getOrgType
(),
OrgTypeEnum
.
FACTORY
.
getCode
()))
.
map
(
item
->
new
Factory
(
item
.
getCompanyCode
(),
item
.
getCompanyName
(),
item
.
getFactoryCode
(),
item
.
getFactoryName
())).
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toMap
(
Factory:
:
getFactoryCode
,
Function
.
identity
(),
(
oldValue
,
newValue
)
->
oldValue
),
// 将Map转回List
m
->
new
ArrayList
<>(
m
.
values
())
));
inInfo
.
set
(
EiConstant
.
resultBlock
,
list
);
return
inInfo
;
}
}
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