Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
76ed330d
Commit
76ed330d
authored
Dec 27, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改排序
parent
d968cd3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
OrganizationImpl.java
...os/boot/module/jcs/biz/service/impl/OrganizationImpl.java
+5
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrganizationImpl.java
View file @
76ed330d
...
...
@@ -211,8 +211,8 @@ public class OrganizationImpl extends BaseService<Organization,Organization, Org
// 上移,查询上一条数据
LambdaQueryWrapper
<
Organization
>
wrapper
=
new
LambdaQueryWrapper
<>();
int
sort
=
organization
.
getSort
();
wrapper
.
l
t
(
Organization:
:
getSort
,
sort
);
wrapper
.
orderBy
De
sc
(
Organization:
:
getSort
);
wrapper
.
g
t
(
Organization:
:
getSort
,
sort
);
wrapper
.
orderBy
A
sc
(
Organization:
:
getSort
);
wrapper
.
last
(
" limit 1"
);
Organization
upOrganization
=
this
.
baseMapper
.
selectOne
(
wrapper
);
if
(
ObjectUtils
.
isEmpty
(
upOrganization
))
{
...
...
@@ -227,8 +227,8 @@ public class OrganizationImpl extends BaseService<Organization,Organization, Org
// 下移,查询下一条数据
LambdaQueryWrapper
<
Organization
>
wrapper
=
new
LambdaQueryWrapper
<>();
int
sort
=
organization
.
getSort
();
wrapper
.
g
t
(
Organization:
:
getSort
,
sort
);
wrapper
.
orderBy
A
sc
(
Organization:
:
getSort
);
wrapper
.
l
t
(
Organization:
:
getSort
,
sort
);
wrapper
.
orderBy
De
sc
(
Organization:
:
getSort
);
wrapper
.
last
(
" limit 1"
);
Organization
downOrganization
=
this
.
baseMapper
.
selectOne
(
wrapper
);
if
(
ObjectUtils
.
isEmpty
(
downOrganization
))
{
...
...
@@ -245,7 +245,7 @@ public class OrganizationImpl extends BaseService<Organization,Organization, Org
@Override
public
List
<
Organization
>
getList
()
{
LambdaQueryWrapper
<
Organization
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderBy
A
sc
(
Organization:
:
getSort
);
wrapper
.
orderBy
De
sc
(
Organization:
:
getSort
);
return
this
.
baseMapper
.
selectList
(
wrapper
);
}
...
...
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