fuliqi
2024-10-31 d715a933d9f599c9586b07a34e076a6c614916b8
ycl-server/src/main/java/com/ycl/utils/SecurityUtils.java
@@ -44,6 +44,11 @@
     * */
    public static Integer getUnitId() {
        try {
            if (isAdmin(getUserId())) {
                return null;
            } else if (hasRole("zg_city")) {
                return null;
            }
            return getLoginUser().getUser().getUnitId();
        }
        catch (Exception e)