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
77be3f11
Commit
77be3f11
authored
Oct 31, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改驾驶舱查询工厂优化
parent
abd3a0b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+2
-2
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
77be3f11
...
@@ -398,8 +398,8 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -398,8 +398,8 @@ public class ServiceHGSC007 extends ServiceEPBase {
});
});
List
list
=
factoryCodes
.
stream
()
List
list
=
factoryCodes
.
stream
()
.
filter
(
o
->
com
.
baosight
.
hggp
.
util
.
StringUtils
.
equals
(
o
.
getOrgType
(),
OrgTypeEnum
.
FACTORY
.
getCode
()))
.
filter
(
o
->
com
.
baosight
.
hggp
.
util
.
StringUtils
.
equals
(
o
.
getOrgType
(),
OrgTypeEnum
.
FACTORY
.
getCode
()))
.
map
(
item
->
new
Factory
(
item
.
getCompanyCode
(),
item
.
getCompanyName
(),
item
.
get
FactoryCode
(),
.
map
(
item
->
new
Factory
(
item
.
getCompanyCode
(),
item
.
getCompanyName
(),
item
.
get
OrgId
(),
item
.
get
FactoryN
ame
())).
collect
(
Collectors
.
collectingAndThen
(
item
.
get
OrgCn
ame
())).
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toMap
(
Factory:
:
getFactoryCode
,
Function
.
identity
(),
Collectors
.
toMap
(
Factory:
:
getFactoryCode
,
Function
.
identity
(),
(
oldValue
,
newValue
)
->
oldValue
),
(
oldValue
,
newValue
)
->
oldValue
),
// 将Map转回List
// 将Map转回List
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
77be3f11
...
@@ -1067,7 +1067,7 @@
...
@@ -1067,7 +1067,7 @@
</isNotEmpty>
</isNotEmpty>
group by h2.process_code
group by h2.process_code
) B on A.process_code = B.process_code
) B on A.process_code = B.process_code
where 1=1
where 1=1
and DELETE_FLAG = '0'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
A.account_code = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
@@ -1099,7 +1099,7 @@
...
@@ -1099,7 +1099,7 @@
</isNotEmpty>
</isNotEmpty>
group by h2.process_code
group by h2.process_code
) B on A.process_code = B.process_code
) B on A.process_code = B.process_code
where 1=1
where 1=1
and DELETE_FLAG = '0'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
A.account_code = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
...
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