Liang
2024-04-11 9ff0b09d4d1deb0a9e0dbe57ee5c85295a9c4495
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysDeptController.java
@@ -129,7 +129,7 @@
    @SaCheckPermission("system:dept:query")
    @GetMapping("/optionselect")
    public R<List<SysDeptVo>> optionselect(@RequestParam(required = false) Long[] deptIds) {
        return R.ok(deptService.selectDeptByIds(List.of(deptIds)));
        return R.ok(deptService.selectDeptByIds(deptIds == null ? null : List.of(deptIds)));
    }
}