Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王锦盛
operation-control-platform
Commits
2b9d589b
Commit
2b9d589b
authored
Mar 25, 2022
by
zhaochengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务bug修改
parent
09a5b916
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
+1
-1
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
.../java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
+11
-4
No files found.
src/main/java/com/pms/ocp/mapper/OcpApiTreeMapper.java
View file @
2b9d589b
...
@@ -41,5 +41,5 @@ public interface OcpApiTreeMapper extends BaseMapper<OcpApiGroup> {
...
@@ -41,5 +41,5 @@ public interface OcpApiTreeMapper extends BaseMapper<OcpApiGroup> {
OcpApiGroup
selectCode
(
String
code
);
OcpApiGroup
selectCode
(
String
code
);
//根据code查询是否含有下级服务
//根据code查询是否含有下级服务
List
<
OcpApiGroup
>
selectGr
pPcode
(
);
List
<
OcpApiGroup
>
selectGr
oupPcode
(
String
apiGroupCode
);
}
}
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
View file @
2b9d589b
...
@@ -145,7 +145,7 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
...
@@ -145,7 +145,7 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
queryWrapper
.
eq
(
OcpApiGroup:
:
getApiGroupPcode
,
ocpApiGroup
.
getApiGroupCode
());
queryWrapper
.
eq
(
OcpApiGroup:
:
getApiGroupPcode
,
ocpApiGroup
.
getApiGroupCode
());
String
objId
=
ocpApiGroup
.
getObjId
();
String
objId
=
ocpApiGroup
.
getObjId
();
List
<
OcpApiGroup
>
list
=
mapper
.
selectGr
pPcode
(
);
List
<
OcpApiGroup
>
list
=
mapper
.
selectGr
oupPcode
(
ocpApiGroup
.
getApiGroupCode
()
);
if
(
list
.
size
()
>=
1
)
{
if
(
list
.
size
()
>=
1
)
{
flag
=
false
;
flag
=
false
;
}
}
...
@@ -185,9 +185,16 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
...
@@ -185,9 +185,16 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
}
}
}
else
if
(
StringUtils
.
isNotBlank
(
pageGroupDto
.
getKeyword
()))
{
}
else
if
(
StringUtils
.
isNotBlank
(
pageGroupDto
.
getKeyword
()))
{
LambdaQueryWrapper
<
OcpApiGroup
>
ocpTenantGroupLambdaQueryWrapper
=
qw
.
and
(
c
->
c
.
like
(
OcpApiGroup:
:
getApiGroupName
,
pageGroupDto
.
getKeyword
()))
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroupCode
())){
.
and
(
c
->
c
.
eq
(
OcpApiGroup:
:
getApiGroupPcode
,
pageGroupDto
.
getApiGroupCode
()));
LambdaQueryWrapper
<
OcpApiGroup
>
ocpTenantGroupLambdaQueryWrapper
=
qw
.
and
(
c
->
c
.
like
(
OcpApiGroup:
:
getApiGroupName
,
pageGroupDto
.
getKeyword
()))
mapper
.
selectPage
(
pageInfo
,
ocpTenantGroupLambdaQueryWrapper
);
.
and
(
c
->
c
.
eq
(
OcpApiGroup:
:
getApiGroupPromotionType
,
pageGroupDto
.
getApiGroupPromotionType
()));
mapper
.
selectPage
(
pageInfo
,
ocpTenantGroupLambdaQueryWrapper
);
}
else
if
(
StringUtils
.
isNotBlank
(
pageGroupDto
.
getApiGroupCode
()))
{
LambdaQueryWrapper
<
OcpApiGroup
>
ocpTenantGroupLambdaQueryWrapper
=
qw
.
and
(
c
->
c
.
like
(
OcpApiGroup:
:
getApiGroupName
,
pageGroupDto
.
getKeyword
()))
.
and
(
c
->
c
.
eq
(
OcpApiGroup:
:
getApiGroupPcode
,
pageGroupDto
.
getApiGroupCode
()));
mapper
.
selectPage
(
pageInfo
,
ocpTenantGroupLambdaQueryWrapper
);
}
}
}
...
...
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