|
@@ -332,8 +332,7 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
|
332
|
332
|
|
333
|
333
|
// 查询帖子信息
|
334
|
334
|
TpTransaction tpTransaction= tpTransactionMapper.selectById(id);
|
335
|
|
- // 查询评论信息
|
336
|
|
- TransactionReply Reply= transactionReplyMapper.selectById(id);
|
|
335
|
+
|
337
|
336
|
TransactionReply transactionReply= new TransactionReply();
|
338
|
337
|
// 查询回复的ta_userID
|
339
|
338
|
User user= userMapper.selectById(userElement.getId());
|
|
@@ -351,6 +350,8 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
|
351
|
350
|
.setCreateDate(LocalDateTime.now());
|
352
|
351
|
}
|
353
|
352
|
if (Type!=1) {
|
|
353
|
+ // 查询评论信息
|
|
354
|
+ TransactionReply Reply= transactionReplyMapper.selectById(id);
|
354
|
355
|
transactionReply.setCommunityId(userElement.getCommunityId())
|
355
|
356
|
.setTransactionId(Reply.getTransactionId())
|
356
|
357
|
.setUuid(userElement.getId())
|
|
@@ -359,7 +360,7 @@ public class TransactionServiceImpl extends ServiceImpl<TpTransactionMapper, TpT
|
359
|
360
|
.setReplyContent(replyContent)
|
360
|
361
|
.setReplyUuid(Reply.getUuid())
|
361
|
362
|
.setReplyUuidType("prop")
|
362
|
|
- .setReplyUuidName(Reply.getReplyUuidName())
|
|
363
|
+ .setReplyUuidName(Reply.getUuidName())
|
363
|
364
|
.setCreateDate(LocalDateTime.now());
|
364
|
365
|
}
|
365
|
366
|
transactionReplyMapper.insert(transactionReply);
|