licailing il y a 5 ans
Parent
commit
cbccf38fe5

+ 1 - 1
src/main/java/com/izouma/jiashanxia/web/PackageController.java

@@ -48,7 +48,7 @@ public class PackageController extends BaseController {
     //@PreAuthorize("hasRole('ADMIN')")
     //@PreAuthorize("hasRole('ADMIN')")
     @PostMapping("/all")
     @PostMapping("/all")
     public Page<Package> all(@RequestBody PageQuery pageQuery) {
     public Page<Package> all(@RequestBody PageQuery pageQuery) {
-        pageQuery.setSort("type,asc");
+//        pageQuery.setSort("type,asc");
         Map<Long, String> categoryMap = categoryRepo.findAll()
         Map<Long, String> categoryMap = categoryRepo.findAll()
                 .stream()
                 .stream()
                 .collect(Collectors.toMap(Category::getId, Category::getName));
                 .collect(Collectors.toMap(Category::getId, Category::getName));