Browse Source

用户获取bug修复

huangzhiyong 6 years ago
parent
commit
9baf2a836a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/main/java/com/yihu/ehr/users/controller/UserController.java

+ 5 - 2
src/main/java/com/yihu/ehr/users/controller/UserController.java

@ -637,8 +637,11 @@ public class UserController extends BaseController {
            Envelop envStr = roleUserClient.GetUserTypeById(userTypeInt);
            if(envStr != null){
                HashMap userTypeM = objectMapper.readValue(toJson(envStr.getObj()),HashMap.class);
                String userTypeName = userTypeM.get("name").toString();
                detailModel.setUserTypeName(userTypeName);
                if (userTypeM!=null) {
                    String userTypeName = userTypeM.get("name").toString();
                    detailModel.setUserTypeName(userTypeName);
                }
            }
        }