Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
537c0aa0
Commit
537c0aa0
authored
Jan 20, 2021
by
zhangc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
edf302e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OrganizationManageImpl.java
...n/java/com/jz/dm/service/impl/OrganizationManageImpl.java
+3
-3
No files found.
jz-dm-apigateway/src/main/java/com/jz/dm/service/impl/OrganizationManageImpl.java
View file @
537c0aa0
...
...
@@ -62,7 +62,7 @@ public class OrganizationManageImpl implements OrganizationManageService {
query
.
ne
(
"status"
,
OrgStatusEnum
.
CANCEL
);
query
.
orderByDesc
(
"create_date"
);
IPage
<
ApiOrg
>
orgIPage
=
apiOrgMapper
.
selectPage
(
page
,
query
);
if
(
CollectionUtils
.
isEmpty
(
orgIPage
.
getRecords
())){
if
(
!
CollectionUtils
.
isEmpty
(
orgIPage
.
getRecords
())){
orgIPage
.
getRecords
().
forEach
(
x
->{
if
(
OrgStatusEnum
.
CANCEL
.
name
().
equals
(
x
.
getStatus
())){
x
.
setStatus
(
"false"
);
...
...
@@ -87,14 +87,14 @@ public class OrganizationManageImpl implements OrganizationManageService {
query
.
eq
(
"id"
,
req
.
getId
());
query
.
ne
(
"status"
,
OrgStatusEnum
.
CANCEL
);
ApiOrg
apiOrg
=
apiOrgMapper
.
selectOne
(
query
);
if
(
null
=
=
apiOrg
)
{
if
(
null
!
=
apiOrg
)
{
if
(
OrgStatusEnum
.
CANCEL
.
name
().
equals
(
apiOrg
.
getStatus
()))
{
apiOrg
.
setStatus
(
"false"
);
}
else
{
apiOrg
.
setStatus
(
"true"
);
}
}
return
Result
.
of_success
();
return
Result
.
of_success
(
apiOrg
);
}
/**
...
...
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