Commit 058c897a by chamberone

fix: 调整默认排序方向

1 parent 9b3a3543
......@@ -28,8 +28,8 @@ public class BusinessBlockController {
* @param size 分页-页大小
* @param layerId 图层ID(筛选项)
* @param teamId 小队ID(筛选项)
* @param orderBy 排序字段 默认"teamId"
* @param direction 排序方向 desc降序/asc升序 默认"asc"
* @param orderBy 排序字段 默认"updateTime"
* @param direction 排序方向 desc降序/asc升序 默认"desc"
* @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 = "asc";
direction = "desc";
}
Result<?> res = null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!