#
luxiaotao1123
2024-02-16 02eb9d41eb2f201ce18d8481f56d82fb89641d42
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/RoleController.java
@@ -25,19 +25,12 @@
    @Autowired
    private RoleService roleService;
//    @PreAuthorize("hasAuthority('sys:role:list')")
//    @PostMapping("/role/page")
//    public R page(@RequestBody BaseParam param) {
//        PageParam<Role, BaseParam> page = new PageParam<>(param);
//        return R.ok().add(roleService.page(page, page.getWrapper()));
//    }
    @PreAuthorize("hasAuthority('sys:role:list')")
    @PostMapping("/role/page")
    public R page(@RequestBody Map<String, Object> map) {
        BaseParam baseParam = getBaseParam(map);
        PageParam<Role, BaseParam> page = new PageParam<>(baseParam);
        return R.ok().add(roleService.page(page, page.getWrapper()));
        BaseParam baseParam = buildParam(map, BaseParam.class);
        PageParam<Role, BaseParam> pageParam = new PageParam<>(baseParam);
        return R.ok().add(roleService.page(pageParam, pageParam.buildWrapper()));
    }
    @PreAuthorize("hasAuthority('sys:role:list')")