浏览代码

隐私代码优化

fangqing 5 月之前
父节点
当前提交
e9f5a1c166

+ 11 - 0
ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityPrivacyServiceImpl.java

@@ -121,6 +121,17 @@ public class CommunityPrivacyServiceImpl extends ServiceImpl<CommunityUserPrivac
         if (communityUserPrivacy.getIsNames() != null) {
             updateWrapper.set("is_names", communityUserPrivacy.getIsNames());
         }
+        if (communityUserPrivacy.getIsFollow() != null) {
+            updateWrapper.set("is_follow", communityUserPrivacy.getIsFollow());
+        }
+
+        if (communityUserPrivacy.getIsFans() != null) {
+            updateWrapper.set("is_fans", communityUserPrivacy.getIsFans());
+        }
+
+        if (communityUserPrivacy.getIsAccompany() != null) {
+            updateWrapper.set("is_accompany", communityUserPrivacy.getIsAccompany());
+        }
 
         // 执行更新操作
         boolean updated = this.update(updateWrapper);