فهرست منبع

隐私代码优化

fangqing 5 ماه پیش
والد
کامیت
e9f5a1c166
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityPrivacyServiceImpl.java

+ 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);