| | |
| | | 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 { |
| | |
| | | SysUserRoleDO sysUserRoleDO = new SysUserRoleDO(); |
| | | sysUserRoleDO.setUserId(userId); |
| | | sysUserRoleDO.setRoleId(roleDO.getRoleId()); |
| | | if (sysUserDO.getCommunityId().equals(10172)){ |
| | | sysUserRoleDO.setRoleId(1559112102373756548L); |
| | | } |
| | | int insert1 = sysUserRoleDAO.insert(sysUserRoleDO); |
| | | if (insert1 > 0) { |
| | | return R.ok(userId); |