dingxin 6 years ago
parent
commit
d292300316

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpMessage.java View File

@@ -75,10 +75,25 @@ public class TpMessage {
75 75
     
76 76
     private String messageIconTitle;
77 77
 
78
+    /**
79
+     * 举报ID
80
+     * @return
81
+     */
82
+     private  Integer transactionId;
83
+
84
+    public Integer getTransactionId() {
85
+        return transactionId;
86
+    }
87
+
88
+    public void setTransactionId(Integer transactionId) {
89
+        this.transactionId = transactionId;
90
+    }
91
+
78 92
     public Integer getId() {
79 93
         return id;
80 94
     }
81 95
 
96
+
82 97
     public void setId(Integer id) {
83 98
         this.id = id;
84 99
     }

+ 4
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java View File

@@ -546,20 +546,20 @@ public class SocialServiceImpl implements SocialServiceI {
546 546
 
547 547
             // 插入消息表
548 548
             TpMessage message = new TpMessage();
549
-            message.setCommunityId(userId);
549
+            message.setCommunityId(communityId);
550 550
             message.setMessageType("9");
551 551
             message.setAdviceType("4");
552 552
             message.setModelType("1");
553 553
             //超级管理员
554
-            message.setUuid(toCommunitiesMapper.selectAndmin(communityId));
554
+            Integer userID= toCommunitiesMapper.selectAndmin(communityId);
555
+            message.setUuid(userID);
555 556
             message.setModelType("1");
556
-            message.setUuid(userId);
557 557
             message.setUuidType("2");
558 558
             message.setSource("1");
559 559
             message.setMessageContent("{" + taUser.getUserName() + "}举报了{" + createUser.getUserName() + "}发布的帖子:{" + tpTransaction.getTransactionTitle() +  "},举报原因:{" + sysReportReason.getReason() + "},点击责令发布人修改或直接作废帖子");
560 560
             message.setStatus("1");
561 561
             message.setReadStatus("0");
562
-            message.setAnnouncementId(transactionId);
562
+            message.setTransactionId(transactionId);
563 563
             message.setCreateDate(new Date());
564 564
             message.setCreateUser(userId);
565 565
             tpMessageMapper.insertSelective(message);

+ 10
- 4
CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml View File

@@ -124,7 +124,10 @@
124 124
         activity_id,
125 125
       </if>
126 126
       <if test="announcementId != null" >
127
-        announcement_id,
127
+      announcement_id,
128
+    </if>
129
+      <if test="transactionId != null" >
130
+        transaction_id
128 131
       </if>
129 132
     </trim>
130 133
     <trim prefix="values (" suffix=")" suffixOverrides="," >
@@ -183,13 +186,16 @@
183 186
         #{updateDate,jdbcType=TIMESTAMP},
184 187
       </if>
185 188
       <if test="billId != null" >
186
-        bill_id,
189
+        #{billId,jdbcType=TIMESTAMP},
187 190
       </if>
188 191
       <if test="activityId != null" >
189
-        activity_id,
192
+        #{activityId,jdbcType=TIMESTAMP},
190 193
       </if>
191 194
       <if test="announcementId != null" >
192
-        announcement_id,
195
+        #{announcementId,jdbcType=TIMESTAMP},
196
+      </if>
197
+      <if test="transactionId != null" >
198
+        #{transactionId,jdbcType=TIMESTAMP},
193 199
       </if>
194 200
     </trim>
195 201
   </insert>