dingxin 6 years ago
parent
commit
28f4500bcc

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

@@ -638,8 +638,8 @@ public class SocialServiceImpl implements SocialServiceI {
638 638
                 tdImagesMapper.insert(tdImages);
639 639
             }
640 640
         }
641
-        // 推消
642
-        TpMessage  tpMessage = new TpMessage(null,userElement.getCommunityId(),"6","1","1", tpTransactionReply.getUuid(),"1","2",  userElement.getUserName()+":"+tpTransactionReply.getReplyContent(),
641
+        // 推消
642
+        TpMessage  tpMessage = new TpMessage(null,userElement.getCommunityId(),"6","1","1", tpTransactionReply.getReplyId(),"1","2",  userElement.getUserName()+":"+tpTransactionReply.getReplyContent(),
643 643
                                           "1",null,null,"0",userElement.getUserVerifyId(),new Date(),null,null,null,null,null,tpTransactionReply.getTransactionId());
644 644
         tpMessageMapper.insertSelective(tpMessage);
645 645
         response.addSuccess("成功");
@@ -1103,8 +1103,12 @@ public class SocialServiceImpl implements SocialServiceI {
1103 1103
 
1104 1104
         JSONArray tpTransactionIdId = parseObject.getJSONArray("id");
1105 1105
         Integer[] tpTransactionReportArray = tpTransactionIdId.toArray(new Integer[]{});
1106
-        for (Integer TpTransactionReport:tpTransactionReportArray){
1107
-            tpTransactionReportMapper.deleteTransactionReport(TpTransactionReport,tpUser.getCommunityId());
1106
+        for (Integer tpTransactionReportID:tpTransactionReportArray){
1107
+            tpTransactionReportMapper.deleteTransactionReport(tpTransactionReportID,tpUser.getCommunityId());
1108
+            TpTransaction tpTransaction= new TpTransaction();
1109
+            tpTransaction.setId(tpTransactionReportID);
1110
+            tpTransaction.setIsReported("0");
1111
+            tpTransactionMapper.updateByPrimaryKeySelective(tpTransaction);
1108 1112
         }
1109 1113
         response.addSuccess("成功");
1110 1114
         return response;

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionReportMapper.xml View File

@@ -9,7 +9,7 @@
9 9
     <result column="reporter_id" property="reporterId" jdbcType="INTEGER" />
10 10
     <result column="reportName" property="reportName" jdbcType="VARCHAR" />
11 11
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
12
-    <result column="reportStringName" property="reportUserName" jdbcType="VARCHAR" />
12
+    <result column="reportUserName" property="reportUserName" jdbcType="VARCHAR" />
13 13
 
14 14
   </resultMap>
15 15
   <sql id="Base_Column_List" >

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TransactionServiceImpl.java View File

@@ -396,8 +396,8 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
396 396
 			tdImages.setCreateUser(userElement.getId());
397 397
 			tdImagesMapper.insert(tdImages);
398 398
 		}
399
-		Message  tpMessage=new Message(null,userElement.getCommunityId(),"9","1","1", tpTransaction.getUuid(),"1","2",  userElement.getUserName()+":"+ replyContent,
400
-				"1",null,null,"0",userElement.getUserVerifyId(),LocalDateTime.now(),null,null,null,null,null,tpTransaction.getId());
399
+		Message  tpMessage=new Message(null,userElement.getCommunityId(),"6","1","1", transactionReply.getReplyUuid(),"1","2",  userElement.getUserName()+":"+ replyContent,
400
+				"1",null,null,"0",userElement.getUserVerifyId(),LocalDateTime.now(),null,null,null,null,null,transactionReply.getTransactionId());
401 401
 		tpMessageMapper.insert(tpMessage);
402 402
 		response.addSuccess("成功");
403 403
 		return response;