傅行帆 6 anos atrás
pai
commit
0a42b24193

+ 4
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Ver arquivo

@@ -902,10 +902,14 @@ public class SocialServiceImpl implements SocialServiceI {
902 902
         if (tpTransaction.getUuidType().equals("app")) {
903 903
             TaUser taUser = taUserMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(tpTransaction.getUuid()).getUserId());
904 904
             tpTransaction.setTelephone(taUser.getLoginName());
905
+            TaSysRole taSysRole = taSysRoleMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(tpTransaction.getUuid()).getRoleId());
906
+            tpTransaction.setRoleId(taSysRole.getId());
907
+            tpTransaction.setRoleName(taSysRole.getRoleName());
905 908
         }
906 909
         if (tpTransaction.getUuidType().equals("prop")) {
907 910
            TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpTransaction.getUuid());
908 911
             tpTransaction.setTelephone(tpUser.getLoginName());
912
+            tpTransaction.setRoleName("物业");
909 913
         }
910 914
         
911 915
         Map<String, Object> map = Maps.newHashMap();