zhou zhou
1 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/system/controller/WarehouseRoleMenuController.java
@@ -25,6 +25,7 @@
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
import jakarta.servlet.http.HttpServletResponse;
import java.util.*;
@@ -43,7 +44,7 @@
    @GetMapping("/roleWarehouse/scope/list")
    public R scopeList(@RequestParam Long roleId) {
        return R.ok().add(warehouseRoleMenuService.listStrictlyMenuByRoleId(roleId));
        return R.ok().add(buildPageRowsUtils.rowsMap(warehouseRoleMenuService.listStrictlyMenuByRoleId(roleId)));
    }
    @PreAuthorize("hasAuthority('system:role:update')")
@@ -107,7 +108,7 @@
            });
        }
        return R.ok().add(warehouseList);
        return R.ok().add(buildPageRowsUtils.rowsMap(warehouseList));
    }
}