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
41fd56b1
Commit
41fd56b1
authored
Mar 22, 2022
by
zhaochengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用--新增删除修改
parent
a88b039c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
...main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
+12
-7
No files found.
src/main/java/com/pms/ocp/service/impl/TenantServiceImpl.java
View file @
41fd56b1
...
@@ -146,13 +146,18 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
...
@@ -146,13 +146,18 @@ public class TenantServiceImpl extends ServiceImpl<TenantMapper, OcpTenantGroup>
String
objId
=
ocpTenantGroup
.
getObjId
();
String
objId
=
ocpTenantGroup
.
getObjId
();
OcpTenantGroup
ocpTenantGroup1
=
tenantMapper
.
selectById
(
objId
);
OcpTenantGroup
ocpTenantGroup1
=
tenantMapper
.
selectById
(
objId
);
boolean
flag
=
true
;
boolean
flag
=
true
;
LambdaQueryWrapper
<
OcpTenantGroup
>
wrapper
=
new
LambdaQueryWrapper
<>();
List
<
OcpTenantGroup
>
group
=
new
ArrayList
<>();
LambdaQueryWrapper
<
OcpTenantGroup
>
lambdaQueryWrapper
=
wrapper
.
eq
(
OcpTenantGroup:
:
getTenantGroupPcode
,
ocpTenantGroup1
.
getTenantGroupCode
());
List
<
OcpTenantGroup
>
ocpTenantGroupList
=
tenantMapper
.
selectList
(
null
);
if
(
StringUtils
.
isBlank
(
lambdaQueryWrapper
.
toString
())){
for
(
OcpTenantGroup
tenantGroup
:
ocpTenantGroupList
)
{
tenantMapper
.
deleteById
(
objId
);
if
(
tenantGroup
.
getTenantGroupPcode
().
equals
(
ocpTenantGroup1
.
getTenantGroupCode
())){
}
else
{
group
.
add
(
tenantGroup
);
flag
=
false
;
}
}
}
if
(
group
.
size
()
>=
1
){
flag
=
false
;
}
else
{
tenantMapper
.
deleteById
(
objId
);
}
return
flag
;
return
flag
;
}
}
...
...
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