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
fb57cbe3
Commit
fb57cbe3
authored
Mar 12, 2022
by
diaoruifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务列表树功能优化
parent
9bbbea24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
.../com/pms/ocp/controller/ApiBasicManagementController.java
+4
-3
src/main/resources/mapper/OcpApiGroupMapper.xml
src/main/resources/mapper/OcpApiGroupMapper.xml
+8
-1
No files found.
src/main/java/com/pms/ocp/controller/ApiBasicManagementController.java
View file @
fb57cbe3
...
@@ -192,13 +192,14 @@ public class ApiBasicManagementController {
...
@@ -192,13 +192,14 @@ public class ApiBasicManagementController {
QueryResponseResult
apiBaseList
=
apiBasicManagementService
.
getBaseByGroupCode
(
ApiBaseReq
);
QueryResponseResult
apiBaseList
=
apiBasicManagementService
.
getBaseByGroupCode
(
ApiBaseReq
);
return
apiBaseList
;
return
apiBaseList
;
}
}
@ApiOperation
(
"服务树一级"
)
//
@ApiOperation("服务树一级")
@GetMapping
(
"/apiBaseTree"
)
//
@GetMapping("/apiBaseTree")
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTree
(
String
apiGroupCompanyCode
)
{
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTree
(
String
apiGroupCompanyCode
)
{
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTree
(
apiGroupCompanyCode
);
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTree
(
apiGroupCompanyCode
);
return
ResponseVO
.
ok
(
apiTreeGroupDtos
);
return
ResponseVO
.
ok
(
apiTreeGroupDtos
);
}
}
@ApiOperation
(
"服务树次级"
)
@ApiOperation
(
"服务树层级"
)
@GetMapping
(
"/apiBaseTreeOther"
)
@GetMapping
(
"/apiBaseTreeOther"
)
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTreeOther
(
String
apiGroupCompanyCode
,
String
apiGroupPcode
)
{
public
ResponseVO
<
List
<
OcpApiGroup
>>
apiBaseTreeOther
(
String
apiGroupCompanyCode
,
String
apiGroupPcode
)
{
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTreeOther
(
apiGroupCompanyCode
,
apiGroupPcode
);
List
<
OcpApiGroup
>
apiTreeGroupDtos
=
apiBasicManagementService
.
apiBaseTreeOther
(
apiGroupCompanyCode
,
apiGroupPcode
);
...
...
src/main/resources/mapper/OcpApiGroupMapper.xml
View file @
fb57cbe3
...
@@ -19,7 +19,14 @@
...
@@ -19,7 +19,14 @@
</resultMap>
</resultMap>
<select
id=
"selectTreeList"
resultType=
"com.pms.ocp.model.entity.OcpApiGroup"
>
<select
id=
"selectTreeList"
resultType=
"com.pms.ocp.model.entity.OcpApiGroup"
>
select api_group_code,api_group_name,api_group_pcode,api_group_level from ocp_api_group where api_group_pcode is null
select api_group_code,api_group_name,api_group_pcode,api_group_level from ocp_api_group where where is_delete = 0
<if
test=
"apiGroupPcode == null"
>
and api_group_pcode is null
</if>
<if
test=
"apiGroupPcode!=null and apiGroupPcode!=''"
>
and api_group_pcode = #{apiGroupPcode}
</if>
<if
test=
"apiGroupCompanyCode!=null and apiGroupCompanyCode!=''"
>
<if
test=
"apiGroupCompanyCode!=null and apiGroupCompanyCode!=''"
>
and api_group_company_code =#{apiGroupCompanyCode}
and api_group_company_code =#{apiGroupCompanyCode}
</if>
</if>
...
...
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