fangqing 5 ヶ月 前
コミット
6231340d07

+ 3 - 0
ruoyi-generator/src/main/java/com/ruoyi/generator/service/CommunityCollectionServiceImpl.java

@@ -129,6 +129,9 @@ public class CommunityCollectionServiceImpl extends ServiceImpl<CommunityCollect
                     .isNull("is_delete");
         })).size());
         collectionObject.put("heat", communityCollection.getHeat());
+        //浏览量设置默认值
+        collectionObject.put("pageViews",0);
+
 
         //查询当前用户是否订阅
         CommunityCollectionUser communityCollectionUser = communityCollectionUserMapper.selectOne(new QueryWrapper<CommunityCollectionUser>()