傅行帆 6 년 전
부모
커밋
0a42b24193
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java

+ 4
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java 파일 보기

902
         if (tpTransaction.getUuidType().equals("app")) {
902
         if (tpTransaction.getUuidType().equals("app")) {
903
             TaUser taUser = taUserMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(tpTransaction.getUuid()).getUserId());
903
             TaUser taUser = taUserMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(tpTransaction.getUuid()).getUserId());
904
             tpTransaction.setTelephone(taUser.getLoginName());
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
         if (tpTransaction.getUuidType().equals("prop")) {
909
         if (tpTransaction.getUuidType().equals("prop")) {
907
            TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpTransaction.getUuid());
910
            TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpTransaction.getUuid());
908
             tpTransaction.setTelephone(tpUser.getLoginName());
911
             tpTransaction.setTelephone(tpUser.getLoginName());
912
+            tpTransaction.setRoleName("物业");
909
         }
913
         }
910
         
914
         
911
         Map<String, Object> map = Maps.newHashMap();
915
         Map<String, Object> map = Maps.newHashMap();