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
ce28be68
Commit
ce28be68
authored
Mar 29, 2022
by
郭凡凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
190186aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
...java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
+1
-0
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
...ms/ocp/service/impl/TenantBasicManagementServiceImpl.java
+20
-12
No files found.
src/main/java/com/pms/ocp/service/impl/AppRegisterServiceImpl.java
View file @
ce28be68
...
...
@@ -61,6 +61,7 @@ public class AppRegisterServiceImpl implements AppRegisterService {
ocpTenantExtent
.
setClusterName
(
appRegisterDTO
.
getGroup
());
ocpTenantExtent
.
setDeploymentName
(
appRegisterDTO
.
getDeploymentName
());
ocpTenantExtent
.
setIsDelete
((
short
)
0
);
ocpTenantExtent
.
setTenantState
((
short
)
0
);
int
j
=
ocpTenantExtentMapper
.
insert
(
ocpTenantExtent
);
OcpTenantGroup
ocpTenantGroup
=
new
OcpTenantGroup
();
...
...
src/main/java/com/pms/ocp/service/impl/TenantBasicManagementServiceImpl.java
View file @
ce28be68
...
...
@@ -410,7 +410,7 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
OcpTenantBase
ocpTenantBase
=
new
OcpTenantBase
();
BeanUtils
.
copyProperties
(
ocpBaseTiocnDto
,
ocpTenantBase
);
ocpTenantBase
.
setIsDelete
((
short
)
0
);
ocpTenantBase
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
LambdaQueryWrapper
<
OcpTenantBase
>
lambdaQueryWrapper2
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper2
.
eq
(
OcpTenantBase:
:
getTenantCode
,
tenantCode
);
// boolean flag = this.update(ocpTenantBase, lambdaQueryWrapper2);
...
...
@@ -421,22 +421,34 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
int
delete
=
tenantBasicManagementMapper
.
delete
(
lambdaQueryWrapper2
);
if
(
delete
==
0
)
{
log
.
info
(
"增加"
);
ocpTenantBase
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
ocpTenantBase
.
setTenantMtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
}
else
{
log
.
info
(
"编辑"
);
ocpTenantBase
.
setTenantMtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
}
boolean
save1
=
this
.
save
(
ocpTenantBase
);
if
(
save1
)
{
log
.
info
(
"基础表添加成功"
);
OcpTenantExtent
ocpTenantExtent
=
new
OcpTenantExtent
();
ocpTenantExtent
.
setTenantCode
(
tenantCode
);
ocpTenantExtent
.
setTenantState
((
short
)
0
);
ocpTenantExtent
.
setIsDelete
((
short
)
0
);
LambdaQueryWrapper
<
OcpTenantExtent
>
lambdaQueryWrapper1
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper1
.
eq
(
StringUtils
.
isNotEmpty
(
tenantCode
),
OcpTenantExtent:
:
getTenantCode
,
tenantCode
);
int
delete1
=
ocpTenantExtentMapper
.
delete
(
lambdaQueryWrapper1
);
if
(
delete1
==
0
)
{
log
.
info
(
"增加"
);
ocpTenantExtent
.
setTenantCtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
ocpTenantExtent
.
setTenantMtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
}
else
{
log
.
info
(
"编辑"
);
ocpTenantExtent
.
setTenantMtime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
}
ocpTenantExtentMapper
.
insert
(
ocpTenantExtent
);
LambdaQueryWrapper
<
OcpTenantIocn
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
OcpTenantIocn:
:
getCodeNo
,
tenantCode
);
boolean
remove
=
ocpTenantIocnService
.
remove
(
lambdaQueryWrapper
);
if
(
remove
)
{
log
.
info
(
"图标表删除成功"
);
System
.
out
.
println
(
"图标表删除成功"
);
}
//添加新的数据到图标表
OcpTenantIocn
ocpTenantIocn
=
new
OcpTenantIocn
();
String
ownerCompanyCode
=
ocpBaseTiocnDto
.
getOwnerCompanyCode
();
...
...
@@ -445,10 +457,6 @@ public class TenantBasicManagementServiceImpl extends ServiceImpl<TenantBasicMan
// ocpTenantIocn.setIocn(ocpBaseTiocnDto.getIocn());
ocpTenantIocn
.
setCompanyCode
(
ownerCompanyCode
);
boolean
save
=
ocpTenantIocnService
.
save
(
ocpTenantIocn
);
if
(
save
)
{
log
.
info
(
"添加图标表成功"
);
System
.
out
.
println
(
"添加图标表成功"
);
}
if
(
save1
&&
save
)
{
return
ResponseVO
.
ok
(
"添加成功"
);
}
...
...
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