| | |
| | | //医院信息 |
| | | DoctorUserAll doctorUserAllVo = baseMapper.findDoctorUserAllData(sysUser.getId()); |
| | | if (doctorUserAllVo != null) { |
| | | |
| | | //是否医院管理员 |
| | | loginAppUser.setHAdminUser(doctorUserAllVo.getIsAdminUser()); |
| | | //1表示调用老系统接口,2表示调用新系统接口,3表示不执行接口调用 |
| | |
| | | if(doctorUserAllVo.getDepScreen()==null&&doctorUserAllVo.getDepNewScreenclient()==null){ |
| | | state=1; |
| | | } |
| | | if(doctorUserAllVo.getDepScreen().equals(0)){ |
| | | if(doctorUserAllVo.getDepScreen()!=null&&doctorUserAllVo.getDepScreen()==0){ |
| | | state=3; |
| | | } |
| | | if(doctorUserAllVo.getDepScreen().equals(1)){ |
| | | if(doctorUserAllVo.getDepNewScreenclient().equals(1)){ |
| | | if(doctorUserAllVo.getDepScreen()!=null&&doctorUserAllVo.getDepScreen()==1){ |
| | | if(doctorUserAllVo.getDepNewScreenclient()!=null&&doctorUserAllVo.getDepNewScreenclient()==1){ |
| | | state=2; |
| | | } |
| | | if(doctorUserAllVo.getDepNewScreenclient().equals(0)){ |
| | | if(doctorUserAllVo.getDepNewScreenclient()!=null&&doctorUserAllVo.getDepNewScreenclient()==0){ |
| | | state=1; |
| | | } |
| | | } |
| | |
| | | sysUser.setType(UserType.DOCTOR.name()); |
| | | } |
| | | sysUser.setHAdminUser(false); |
| | | sysUser.setDefaultAuth(false); |
| | | if(isReg){ |
| | | sysUser.setDefaultAuth(false); |
| | | }else{ |
| | | sysUser.setDefaultAuth(true); |
| | | } |
| | | sysUser.setOpenId(userRegVo.getOpenId()); |
| | | sysUser.setDel(false); |
| | | sysUser.setTenantId(CommonConstant.H_TENANT); |