| | |
| | | @Override |
| | | public R addUserBackstageProperty(AdministratorsUserVO administratorsUserVO) { |
| | | SysUserDO sysUserDO = new SysUserDO(); |
| | | String appId=userDao.getCommunityAppId(administratorsUserVO.getCommunityId()); |
| | | Long roleId = administratorsUserVO.getRoleId(); |
| | | if (roleId.intValue() == 777777777) { |
| | | SysRoleDO sysRoleDO = new SysRoleDO(); |
| | |
| | | } |
| | | } |
| | | log.info("======================type"+administratorsUserVO.getType()); |
| | | if (administratorsUserVO.getType().equals(20)){ |
| | | roleId=1559112102373756548L; |
| | | administratorsUserVO.setType(3); |
| | | } |
| | | log.info("=======================roleId"+roleId); |
| | | SysRoleDO roleDO = roleDAO.selectById(roleId); |
| | | if (ObjectUtils.isEmpty(roleDO)) { |
| | |
| | | String encode = new BCryptPasswordEncoder().encode(administratorsUserVO.getPassword()); |
| | | administratorsUserVO.setPassword(encode); |
| | | BeanUtils.copyProperties(administratorsUserVO, sysUserDO); |
| | | if (administratorsUserVO.getCommunityId().equals(10172)){ |
| | | roleId=1559112102373756548L; |
| | | } |
| | | sysUserDO.setAppId(appId); |
| | | int insert = 0; |
| | | try { |
| | | insert = userDao.insert(sysUserDO); |