feige
2023-12-05 98049e92b44f3d2e89364b58d520d04192b8e2b1
zhang-content/src/main/java/com/ruoyi/service/impl/IZfPropertyServiceImpl.java
@@ -258,6 +258,11 @@
        //要查自己家庭的
        ZInfoUser myself = zInfoUserService.getMyself();
        if(myself==null)
        {
            //   System.out.println("ssssss");
            return AjaxResult.success("您没加入到对应的家庭,请联系管理员");
        }
        Long familyId = myself.getFamilyId();
        //也要查别人授权的
        List<ZAuthority> authority = zAuthorityService.getAuthority();
@@ -416,8 +421,9 @@
    @Override
    public AjaxResult updateData(ZfProperty zfProperty) {
        ZInfoUser myself = zInfoUserService.getMyself();
        Long familyId = myself.getFamilyId();
        System.out.println("sssssssssssss");
      //  System.out.println("sssssssssssss");
        //先根据id查询出数据的familyId,看看有没有权限操作
        Long dataFamilyId = getById(zfProperty.getId()).getFamilyId();