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
89b83256
Commit
89b83256
authored
Mar 23, 2022
by
zhaochengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务--模糊查询
parent
a4f327df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
.../java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
+3
-3
src/main/resources/mapper/OcpApiTreeMapper.xml
src/main/resources/mapper/OcpApiTreeMapper.xml
+1
-1
No files found.
src/main/java/com/pms/ocp/service/impl/OcpApiTreeServiceImpl.java
View file @
89b83256
...
@@ -156,13 +156,13 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
...
@@ -156,13 +156,13 @@ public class OcpApiTreeServiceImpl extends ServiceImpl<OcpApiTreeMapper, OcpApiG
public
Page
<
OcpApiGroup
>
getOnePages
(
PageGroupDto
pageGroupDto
)
{
public
Page
<
OcpApiGroup
>
getOnePages
(
PageGroupDto
pageGroupDto
)
{
Page
pageInfo
=
new
Page
(
pageGroupDto
.
getPageNum
(),
pageGroupDto
.
getPageSize
());
Page
pageInfo
=
new
Page
(
pageGroupDto
.
getPageNum
(),
pageGroupDto
.
getPageSize
());
LambdaQueryWrapper
<
OcpApiGroup
>
qw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OcpApiGroup
>
qw
=
new
LambdaQueryWrapper
<>();
if
(
""
.
equals
(
pageGroupDto
.
getKeyword
()))
{
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getKeyword
()))
{
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroup
Level
()))
{
if
(
StringUtils
.
isBlank
(
pageGroupDto
.
getApiGroup
Pcode
()))
{
qw
.
eq
(
OcpApiGroup:
:
getApiGroupPromotionType
,
pageGroupDto
.
getApiGroupPromotionType
());
qw
.
eq
(
OcpApiGroup:
:
getApiGroupPromotionType
,
pageGroupDto
.
getApiGroupPromotionType
());
mapper
.
selectPage
(
pageInfo
,
qw
);
mapper
.
selectPage
(
pageInfo
,
qw
);
}
else
if
(
"Middleground"
.
equals
(
pageGroupDto
.
getApiGroupLevel
())
||
"sys_center"
.
equals
(
pageGroupDto
.
getApiGroupLevel
())
||
"api_group"
.
equals
(
pageGroupDto
.
getApiGroupLevel
()))
{
}
else
{
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectLists
(
pageGroupDto
.
getApiGroupPromotionType
(),
pageGroupDto
.
getApiGroupCode
());
List
<
OcpApiGroup
>
ocpApiGroups
=
mapper
.
selectLists
(
pageGroupDto
.
getApiGroupPromotionType
(),
pageGroupDto
.
getApiGroupCode
());
pageInfo
.
setRecords
(
ocpApiGroups
);
pageInfo
.
setRecords
(
ocpApiGroups
);
pageInfo
.
setTotal
(
ocpApiGroups
.
size
());
pageInfo
.
setTotal
(
ocpApiGroups
.
size
());
...
...
src/main/resources/mapper/OcpApiTreeMapper.xml
View file @
89b83256
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</select>
</select>
<!--服务树 -查询-->
<!--服务树 -查询-->
<select
id=
"selectLists"
resultType=
"com.pms.ocp.model.entity.OcpApiGroup"
>
<select
id=
"selectLists"
resultType=
"com.pms.ocp.model.entity.OcpApiGroup"
>
SELECT * FROM ocp_api_group WHERE api_group_promotion_type = #{apiGroupPromotionType} and api_group_pcode = #{apiGroup
C
ode};
SELECT * FROM ocp_api_group WHERE api_group_promotion_type = #{apiGroupPromotionType} and api_group_pcode = #{apiGroup
c
ode};
</select>
</select>
...
...
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