Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
d8897e52
Commit
d8897e52
authored
Sep 15, 2021
by
czh030
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/luxinyun_v3_dev' into luxinyun_v3_dev
parents
4ff02a6d
5bd69198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CommodityServiceImpl.java
.../ssy/lingxi/product/serviceImpl/CommodityServiceImpl.java
+4
-4
No files found.
product-service/src/main/java/com/ssy/lingxi/product/serviceImpl/CommodityServiceImpl.java
View file @
d8897e52
...
...
@@ -2098,12 +2098,12 @@ public class CommodityServiceImpl implements ICommodityService {
}
//排序
Order
publishTimeOrder
=
criteriaBuilder
.
desc
(
root
.
get
(
"publishTime"
));
Order
checkTimeOrder
=
criteriaBuilder
.
desc
(
root
.
get
(
"checkTime"
));
Order
applyTimeOrder
=
criteriaBuilder
.
desc
(
root
.
get
(
"applyTime"
));
//
Order publishTimeOrder = criteriaBuilder.desc(root.get("publishTime"));
//
Order checkTimeOrder = criteriaBuilder.desc(root.get("checkTime"));
//
Order applyTimeOrder = criteriaBuilder.desc(root.get("applyTime"));
Order
idOrder
=
criteriaBuilder
.
desc
(
root
.
get
(
"id"
));
return
query
.
distinct
(
true
).
orderBy
(
publishTimeOrder
,
checkTimeOrder
,
applyTimeOrder
,
idOrder
).
where
(
finalConditions
).
getRestriction
();
return
query
.
distinct
(
true
).
orderBy
(
idOrder
).
where
(
finalConditions
).
getRestriction
();
};
}
...
...
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