|
@@ -597,9 +597,10 @@ public class SocialServiceImpl implements SocialServiceI {
|
597
|
597
|
tpTransactionReply.setUuidRole(taSysRoleMapper.selectByPrimaryKey(taUserVerify.getRoleId()).getDescription());
|
598
|
598
|
|
599
|
599
|
TpTransactionReply tpTransactionReplyBack = new TpTransactionReply();
|
|
600
|
+ TpTransaction tpTransaction = new TpTransaction();
|
600
|
601
|
//replyId为空的情况下被回复人就是帖子的创建人
|
601
|
602
|
if (StringUtils.isEmpty(tpTransactionReply.getReplyId())) {
|
602
|
|
- TpTransaction tpTransaction = tpTransactionMapper.selectByPrimaryKey(tpTransactionReply.getTransactionId(),tpTransactionReply.getCommunityId());
|
|
603
|
+ tpTransaction = tpTransactionMapper.selectByPrimaryKey(tpTransactionReply.getTransactionId(),tpTransactionReply.getCommunityId());
|
603
|
604
|
//塞入被回复人信息
|
604
|
605
|
tpTransactionReply.setReplyUuid(tpTransaction.getUuid());
|
605
|
606
|
tpTransactionReply.setReplyUuidType(tpTransaction.getUuidType());
|
|
@@ -638,7 +639,8 @@ public class SocialServiceImpl implements SocialServiceI {
|
638
|
639
|
}
|
639
|
640
|
}
|
640
|
641
|
// 推消息
|
641
|
|
- TpMessage tpMessage = new TpMessage(null,userElement.getCommunityId(),"9","1","1", tpTransactionReplyBack.getUuid(),"1","2", userElement.getUserName()+":"+tpTransactionReply.getReplyContent(),
|
|
642
|
+ Integer uuId= "".equals(tpTransactionReplyBack.getUuid())?tpTransaction.getUuid():tpTransactionReplyBack.getUuid();
|
|
643
|
+ TpMessage tpMessage = new TpMessage(null,userElement.getCommunityId(),"6","1","1", uuId,"1","2", userElement.getUserName()+":"+tpTransactionReply.getReplyContent(),
|
642
|
644
|
"1",null,null,"0",userElement.getUserVerifyId(),new Date(),null,null,null,null,null,tpTransactionReplyBack.getTransactionId());
|
643
|
645
|
tpMessageMapper.insert(tpMessage);
|
644
|
646
|
response.addSuccess("成功");
|