Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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
base_platform_enterprise
gic-data-cloud
Commits
7264701f
Commit
7264701f
authored
Sep 18, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件修复
parent
ed030a62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
FunctionApiServiceImpl.java
.../gic/cloud/service/outer/impl/FunctionApiServiceImpl.java
+2
-2
IndexDescApiServiceImpl.java
...gic/cloud/service/outer/impl/IndexDescApiServiceImpl.java
+4
-4
No files found.
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/FunctionApiServiceImpl.java
View file @
7264701f
...
@@ -156,12 +156,12 @@ public class FunctionApiServiceImpl implements FunctionApiService{
...
@@ -156,12 +156,12 @@ public class FunctionApiServiceImpl implements FunctionApiService{
}
}
//一个流只能用一次
//一个流只能用一次
Stream
<
String
>
stream
=
Arrays
.
stream
(
functionComponent
.
split
(
","
));
Stream
<
String
>
stream
=
Arrays
.
stream
(
functionComponent
.
split
(
","
));
Stream
<
String
>
stream
1
=
Arrays
.
stream
(
functionComponent
.
split
(
","
));
Stream
<
String
>
stream
Two
=
Arrays
.
stream
(
functionComponent
.
split
(
","
));
if
(
stream
.
anyMatch
(
e
->
!
FunctionEnum
.
isRightCode
(
e
)))
{
if
(
stream
.
anyMatch
(
e
->
!
FunctionEnum
.
isRightCode
(
e
)))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"功能组件值非法"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"功能组件值非法"
);
}
}
StringBuilder
temp
=
new
StringBuilder
(
"_"
);
StringBuilder
temp
=
new
StringBuilder
(
"_"
);
stream
1
.
sorted
().
forEach
(
e
->
{
stream
Two
.
sorted
().
forEach
(
e
->
{
temp
.
append
(
e
).
append
(
"_"
);
temp
.
append
(
e
).
append
(
"_"
);
});
});
dto
.
setFunctionComponent
(
temp
.
toString
());
dto
.
setFunctionComponent
(
temp
.
toString
());
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexDescApiServiceImpl.java
View file @
7264701f
...
@@ -118,13 +118,13 @@ public class IndexDescApiServiceImpl implements IndexDescApiService {
...
@@ -118,13 +118,13 @@ public class IndexDescApiServiceImpl implements IndexDescApiService {
List
<
TabIndexDesc
>
indexDescList
=
this
.
indexDescService
.
listAllUnRel
(
notInIndexDescIdList
);
List
<
TabIndexDesc
>
indexDescList
=
this
.
indexDescService
.
listAllUnRel
(
notInIndexDescIdList
);
if
(
StringUtils
.
isNotBlank
(
moduleIds
))
{
if
(
StringUtils
.
isNotBlank
(
moduleIds
))
{
List
<
Integer
>
relModuleIdList
2
=
Stream
.
of
(
moduleIds
.
split
(
","
)).
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
relModuleIdList
Two
=
Stream
.
of
(
moduleIds
.
split
(
","
)).
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
List
<
TabIndexDesc
>
indexDescList
2
=
this
.
indexDescService
.
listByIds
(
relModuleIdList2
);
List
<
TabIndexDesc
>
indexDescList
Two
=
this
.
indexDescService
.
listByIds
(
relModuleIdListTwo
);
if
(
CollectionUtils
.
isNotEmpty
(
indexDescList
2
))
{
if
(
CollectionUtils
.
isNotEmpty
(
indexDescList
Two
))
{
if
(
CollectionUtils
.
isEmpty
(
indexDescList
))
{
if
(
CollectionUtils
.
isEmpty
(
indexDescList
))
{
indexDescList
=
new
ArrayList
<>();
indexDescList
=
new
ArrayList
<>();
}
}
indexDescList
.
addAll
(
indexDescList
2
);
indexDescList
.
addAll
(
indexDescList
Two
);
}
}
}
}
...
...
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