排序优化

This commit is contained in:
none
2023-03-03 15:59:36 +08:00
parent 86d507cc98
commit b4db9d67b2
7 changed files with 40 additions and 17 deletions

View File

@@ -39,8 +39,8 @@ public class ResourceController {
public JsonResponse index(@RequestParam HashMap<String, Object> params) {
Integer page = MapUtils.getInteger(params, "page", 1);
Integer size = MapUtils.getInteger(params, "size", 10);
String sortField = MapUtils.getString(params, "sort_field", "id");
String sortAlgo = MapUtils.getString(params, "sort_algo", "desc");
String sortField = MapUtils.getString(params, "sort_field");
String sortAlgo = MapUtils.getString(params, "sort_algo");
String name = MapUtils.getString(params, "name");
String categoryIdsStr = MapUtils.getString(params, "category_ids");