Parcourir la source

bug 话题显示

傅行帆 il y a 6 ans
Parent
révision
ec8f564c6d

+ 11
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Voir le fichier

@@ -657,7 +657,17 @@ public class SocialServiceImpl implements SocialServiceI {
657 657
         Map<String, Object> parameter = Maps.newHashMap();
658 658
         Page<TpTransaction> pageList = PageHelper.startPage(pageNum, paeSize);
659 659
         List<TpTransaction> tpTransactionList = tpTransactionMapper.getUserTransactionList(userElement.getUserVerifyId(), userElement.getCommunityId());
660
-
660
+        tpTransactionList.stream().forEach(e -> {
661
+            if (e.getUuidType().equals("app")) {
662
+                TaSysRole taSysRole = taSysRoleMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(e.getUuid()).getRoleId());
663
+                e.setRoleId(taSysRole.getId());
664
+                e.setRoleName(taSysRole.getRoleName());
665
+            }
666
+            if (e.getUuidType().equals("prop")) {
667
+                e.setRoleName("物业");
668
+            }
669
+            e.setCreateUserName(e.getUuidName());
670
+        });
661 671
         parameter.put("list", tpTransactionList);
662 672
         parameter.put("total", pageList.getTotal());
663 673
         responseBean.addSuccess(parameter);