diff --git a/inspur-service/inspur-community/src/main/java/com/inspur/community/domain/CommunityPostHeat.java b/inspur-service/inspur-community/src/main/java/com/inspur/community/domain/CommunityPostHeat.java
index 5911242..2a3ca53 100644
--- a/inspur-service/inspur-community/src/main/java/com/inspur/community/domain/CommunityPostHeat.java
+++ b/inspur-service/inspur-community/src/main/java/com/inspur/community/domain/CommunityPostHeat.java
@@ -31,6 +31,8 @@ public class CommunityPostHeat extends BaseEntity
@Excel(name = "回复数")
private Integer replies;
+ private CommunityPostInfo communityPostInfo;
+
public void setPostId(String postId)
{
this.postId = postId;
@@ -68,6 +70,14 @@ public class CommunityPostHeat extends BaseEntity
return replies;
}
+ public CommunityPostInfo getCommunityPostInfo() {
+ return communityPostInfo;
+ }
+
+ public void setCommunityPostInfo(CommunityPostInfo communityPostInfo) {
+ this.communityPostInfo = communityPostInfo;
+ }
+
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
diff --git a/inspur-service/inspur-community/src/main/java/com/inspur/community/service/impl/CommunityPostInfoServiceImpl.java b/inspur-service/inspur-community/src/main/java/com/inspur/community/service/impl/CommunityPostInfoServiceImpl.java
index 47f2e19..90e4bf0 100644
--- a/inspur-service/inspur-community/src/main/java/com/inspur/community/service/impl/CommunityPostInfoServiceImpl.java
+++ b/inspur-service/inspur-community/src/main/java/com/inspur/community/service/impl/CommunityPostInfoServiceImpl.java
@@ -66,6 +66,7 @@ public class CommunityPostInfoServiceImpl implements ICommunityPostInfoService
communityPostInfo.setPostId(IdUtils.simpleUUID());
communityPostInfo.setPostTime(new Date());
communityPostInfo.setUserId(SecurityUtils.getUserId());
+ communityPostInfo.setStatus("0");
//热度榜单新增记录
CommunityPostHeat postHeat = new CommunityPostHeat();
postHeat.setPostId(communityPostInfo.getPostId());
diff --git a/inspur-service/inspur-community/src/main/resources/mapper/community/CommunityPostHeatMapper.xml b/inspur-service/inspur-community/src/main/resources/mapper/community/CommunityPostHeatMapper.xml
index fbc37b2..82f8933 100644
--- a/inspur-service/inspur-community/src/main/resources/mapper/community/CommunityPostHeatMapper.xml
+++ b/inspur-service/inspur-community/src/main/resources/mapper/community/CommunityPostHeatMapper.xml
@@ -9,20 +9,35 @@
+
+
+