| | |
| | | private final static String LOCK_KEY_USERNAME = CommonConstant.LOCK_KEY_PREFIX + "username:"; |
| | | @Autowired |
| | | private PasswordEncoder passwordEncoder; |
| | | |
| | | @Resource |
| | | private ISysRoleUserService roleUserService; |
| | | @Resource |
| | | private ISysDictionariesService sysDictionariesService; |
| | | @Resource |
| | | private SysRoleMenuMapper roleMenuMapper; |
| | | |
| | | @Autowired |
| | | private ISysOrganizationService organizationService; |
| | | @Autowired |
| | |
| | | private DistributedLock lock; |
| | | @Autowired |
| | | private SysDoctorMapper sysDoctorMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMapper sysRoleMapper; |
| | | @Autowired |
| | |
| | | sysDoctor.setServerUserId(isReg ? createUserId : sysUserd.getId()); |
| | | sysDoctor.setServerUserName(isReg ? createUserName : sysUserd.getUsername()); |
| | | sysDoctor.setIsAdminUser(false); |
| | | sysDoctor.setDoctorCcie(userRegVo.getDoctorCcie()); |
| | | sysDoctor.setEnabled(true); |
| | | if (sysDoctorMapper.insert(sysDoctor) == 1) { |
| | | //非自主注册的 返回信息带密码 |