Przeglądaj źródła

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

魏熙美 6 lat temu
rodzic
commit
7f276dc079

+ 11
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Wyświetl plik

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