|
@@ -565,11 +565,13 @@ public class SocialServiceImpl implements SocialServiceI {
|
565
|
565
|
if (null != array) {
|
566
|
566
|
reply = array.toArray(new String[]{});
|
567
|
567
|
}
|
|
568
|
+ TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
|
568
|
569
|
TpTransactionReply tpTransactionReply = JSONObject.parseObject(paramets, TpTransactionReply.class);
|
569
|
570
|
tpTransactionReply.setCommunityId(userElement.getCommunityId());
|
570
|
571
|
tpTransactionReply.setUuid(userElement.getUserVerifyId());
|
571
|
572
|
tpTransactionReply.setUuidType("app");
|
572
|
573
|
tpTransactionReply.setUuidName(userElement.getUserName());
|
|
574
|
+ tpTransactionReply.setUuidRole(taSysRoleMapper.selectByPrimaryKey(taUserVerify.getRoleId()).getDescription());
|
573
|
575
|
|
574
|
576
|
// 由于评论帖子和评论对话是同一个接口,当tpTransactionReply.getReplyTaUserId()为空时查询Ta_user里面的名字
|
575
|
577
|
TpTransactionReply tpTransactionReplyBack = tpTransactionReplyMapper.selectByPrimaryKey(tpTransactionReply.getReplyId());
|
|
@@ -578,8 +580,9 @@ public class SocialServiceImpl implements SocialServiceI {
|
578
|
580
|
tpTransactionReply.setReplyUuid(tpTransactionReplyBack.getUuid());
|
579
|
581
|
tpTransactionReply.setReplyUuidType(tpTransactionReplyBack.getUuidType());
|
580
|
582
|
tpTransactionReply.setReplyUuidName(tpTransactionReplyBack.getUuidName());
|
|
583
|
+ tpTransactionReply.setReplyUuidRole(tpTransactionReplyBack.getReplyUuidRole());
|
581
|
584
|
tpTransactionReply.setReleaseIdentity("0");
|
582
|
|
- TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
|
|
585
|
+
|
583
|
586
|
tpTransactionReply.setCreateDate(new Date());
|
584
|
587
|
tpTransactionReplyMapper.insert(tpTransactionReply);
|
585
|
588
|
|