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
e766a73b
You need to sign in or sign up before continuing.
Commit
e766a73b
authored
Mar 30, 2022
by
diaoruifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
fc391f81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
6 deletions
+31
-6
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
+20
-1
src/main/java/com/pms/ocp/service/impl/ApiDetailsServiceImpl.java
.../java/com/pms/ocp/service/impl/ApiDetailsServiceImpl.java
+8
-2
src/main/resources/application-local.yml
src/main/resources/application-local.yml
+2
-2
src/main/resources/mapper/ApiDetailsMapper.xml
src/main/resources/mapper/ApiDetailsMapper.xml
+1
-1
No files found.
src/main/java/com/pms/ocp/model/vo/OcpApiBaseVo.java
View file @
e766a73b
...
@@ -51,7 +51,10 @@ public class OcpApiBaseVo implements Serializable {
...
@@ -51,7 +51,10 @@ public class OcpApiBaseVo implements Serializable {
private
String
apiUnit
;
private
String
apiUnit
;
@ApiModelProperty
(
value
=
"出参入参"
)
@ApiModelProperty
(
value
=
"出参入参"
)
private
List
<
OcpApiParam
>
apiParams
;
private
List
<
OcpApiParam
>
apiParams
;
@ApiModelProperty
(
value
=
"出参集合"
)
private
List
<
OcpApiParam
>
apiOutParams
;
@ApiModelProperty
(
value
=
"入参集合"
)
private
List
<
OcpApiParam
>
apiINParams
;
@ApiModelProperty
(
"服务分类代码"
)
@ApiModelProperty
(
"服务分类代码"
)
private
String
apiGroupCode
;
private
String
apiGroupCode
;
...
@@ -148,6 +151,22 @@ public class OcpApiBaseVo implements Serializable {
...
@@ -148,6 +151,22 @@ public class OcpApiBaseVo implements Serializable {
return
apiGroupCode
;
return
apiGroupCode
;
}
}
public
List
<
OcpApiParam
>
getApiOutParams
()
{
return
apiOutParams
;
}
public
void
setApiOutParams
(
List
<
OcpApiParam
>
apiOutParams
)
{
this
.
apiOutParams
=
apiOutParams
;
}
public
List
<
OcpApiParam
>
getApiINParams
()
{
return
apiINParams
;
}
public
void
setApiINParams
(
List
<
OcpApiParam
>
apiINParams
)
{
this
.
apiINParams
=
apiINParams
;
}
public
void
setApiGroupCode
(
String
apiGroupCode
)
{
public
void
setApiGroupCode
(
String
apiGroupCode
)
{
this
.
apiGroupCode
=
apiGroupCode
;
this
.
apiGroupCode
=
apiGroupCode
;
}
}
...
...
src/main/java/com/pms/ocp/service/impl/ApiDetailsServiceImpl.java
View file @
e766a73b
...
@@ -46,8 +46,14 @@ public class ApiDetailsServiceImpl implements ApiDetailsService {
...
@@ -46,8 +46,14 @@ public class ApiDetailsServiceImpl implements ApiDetailsService {
//查询请求字段表
//查询请求字段表
QueryWrapper
<
OcpApiParam
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
OcpApiParam
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
lambda
().
eq
(
OcpApiParam:
:
getApiCode
,
apiCode
);
wrapper
.
lambda
().
eq
(
OcpApiParam:
:
getApiCode
,
apiCode
);
List
<
OcpApiParam
>
ocpApiParams
=
apiParamMapper
.
selectList
(
wrapper
);
wrapper
.
lambda
().
eq
(
OcpApiParam:
:
getApiParamClassification
,
"out"
);
ocpApiBase
.
setApiParams
(
ocpApiParams
);
List
<
OcpApiParam
>
ocpApiOutParams
=
apiParamMapper
.
selectList
(
wrapper
);
QueryWrapper
<
OcpApiParam
>
wrappers
=
new
QueryWrapper
<>();
wrappers
.
lambda
().
eq
(
OcpApiParam:
:
getApiCode
,
apiCode
);
wrappers
.
lambda
().
eq
(
OcpApiParam:
:
getApiParamClassification
,
"in"
);
List
<
OcpApiParam
>
ocpApiInParams
=
apiParamMapper
.
selectList
(
wrappers
);
ocpApiBase
.
setApiOutParams
(
ocpApiOutParams
);
ocpApiBase
.
setApiINParams
(
ocpApiInParams
);
return
ResponseVO
.
ok
(
ocpApiBase
);
return
ResponseVO
.
ok
(
ocpApiBase
);
}
}
...
...
src/main/resources/application-local.yml
View file @
e766a73b
...
@@ -2,11 +2,11 @@ spring:
...
@@ -2,11 +2,11 @@ spring:
datasource
:
datasource
:
driver-class-name
:
org.postgresql.Driver
driver-class-name
:
org.postgresql.Driver
username
:
postgres
username
:
postgres
password
:
1234
password
:
1234
56
type
:
com.zaxxer.hikari.HikariDataSource
type
:
com.zaxxer.hikari.HikariDataSource
# jdbc-url: jdbc:postgresql://192.168.43.20:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
# jdbc-url: jdbc:postgresql://192.168.43.20:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
# jdbc-url: jdbc:postgresql://172.20.10.9:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
# jdbc-url: jdbc:postgresql://172.20.10.9:33072/pms3?currentSchema=public&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
url
:
jdbc:postgresql://localhost:5432/
pms_accep
t?currentSchema=operating_platform&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
url
:
jdbc:postgresql://localhost:5432/
tes
t?currentSchema=operating_platform&stringtype=unspecified&TimeZone=Asia/Shanghai&useAffectedRows=true
knife4j
:
knife4j
:
enable
:
true
enable
:
true
...
...
src/main/resources/mapper/ApiDetailsMapper.xml
View file @
e766a73b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
select
select
oab.obj_id,oab.api_code,oae.api_code,oab.api_name,oae.cluster_name,
oab.obj_id,oab.api_code,oae.api_code,oab.api_name,oae.cluster_name,
oae.space_name,oab.api_url,oae.api_state ,oab.api_unit ,oab.api_ctime from ocp_api_base oab
oae.space_name,oab.api_url,oae.api_state ,oab.api_unit ,oab.api_ctime
,oab.api_req,oab.api_resp
from ocp_api_base oab
LEFT JOIN ocp_api_extent oae
LEFT JOIN ocp_api_extent oae
on oab.api_code = oae.api_code
on oab.api_code = oae.api_code
where oab.is_delete = 0
where oab.is_delete = 0
...
...
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