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
fd8bc5e1
Commit
fd8bc5e1
authored
Mar 30, 2022
by
xxxxxwwwww
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'master' of D:\operation-control-platform with conflicts.
parent
bc6bdf9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+3
-2
src/main/resources/application-local.yml
src/main/resources/application-local.yml
+1
-1
src/main/resources/mapper/OcpTenantBaseMapper.xml
src/main/resources/mapper/OcpTenantBaseMapper.xml
+0
-5
No files found.
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
fd8bc5e1
...
@@ -51,8 +51,9 @@ public class AppRegisterServiceImpl implements AppRegisterService {
...
@@ -51,8 +51,9 @@ public class AppRegisterServiceImpl implements AppRegisterService {
int
count
=
ocpTenantBaseMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
int
count
=
ocpTenantBaseMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
int
c
=
ocpTenantExtentMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
int
c
=
ocpTenantExtentMapper
.
queryCount
(
appRegisterDTO
.
getAppCode
());
if
(
count
!=
0
||
c
!=
0
)
{
int
nc
=
ocpTenantBaseMapper
.
queryName
(
appRegisterDTO
.
getAppName
());
return
ResponseVO
.
error
(
"应用编码有重复/应用扩展表编码有重复"
);
if
(
count
!=
0
||
c
!=
0
||
nc
!=
0
)
{
return
ResponseVO
.
error
(
"应用编码有重复/应用扩展表编码有重复/应用名称有重复"
);
}
}
OcpTenantIocn
ocpTenantIocn
=
new
OcpTenantIocn
();
OcpTenantIocn
ocpTenantIocn
=
new
OcpTenantIocn
();
...
...
src/main/resources/application-local.yml
View file @
fd8bc5e1
...
@@ -2,7 +2,7 @@ spring:
...
@@ -2,7 +2,7 @@ spring:
datasource
:
datasource
:
driver-class-name
:
org.postgresql.Driver
driver-class-name
:
org.postgresql.Driver
username
:
postgres
username
:
postgres
password
:
1234
password
:
root
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
...
...
src/main/resources/mapper/OcpTenantBaseMapper.xml
View file @
fd8bc5e1
...
@@ -32,10 +32,5 @@
...
@@ -32,10 +32,5 @@
where tenant_code = #{appCode}
where tenant_code = #{appCode}
</select>
</select>
<select
id=
"selcctCodeList"
resultType=
"java.lang.Integer"
>
select *
from ocp_tenant_base
where tenant_group_code = #{ocpTenantGroup}
</select>
</mapper>
</mapper>
\ No newline at end of file
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