Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 058c897a
authored
Nov 22, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整默认排序方向
1 parent
9b3a3543
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
View file @
058c897
...
...
@@ -28,8 +28,8 @@ public class BusinessBlockController {
* @param size 分页-页大小
* @param layerId 图层ID(筛选项)
* @param teamId 小队ID(筛选项)
* @param orderBy 排序字段 默认"
teamId
"
* @param direction 排序方向 desc降序/asc升序 默认"
a
sc"
* @param orderBy 排序字段 默认"
updateTime
"
* @param direction 排序方向 desc降序/asc升序 默认"
de
sc"
* @return
*/
@GetMapping
(
"/business/service/block/list"
)
...
...
@@ -41,10 +41,10 @@ public class BusinessBlockController {
@RequestParam
(
required
=
false
)
String
direction
)
{
if
(
StringUtils
.
isEmpty
(
orderBy
))
{
orderBy
=
"
teamId
"
;
orderBy
=
"
updateTime
"
;
}
if
(
StringUtils
.
isEmpty
(
direction
))
{
direction
=
"
a
sc"
;
direction
=
"
de
sc"
;
}
Result
<?>
res
=
null
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment