| | |
| | | if (!AuthUtil.isAdministrator() || StringUtil.isBlank(user.getTenantId())) { |
| | | user.setTenantId(AuthUtil.getTenantId()); |
| | | } |
| | | if (userExcel.getStatus().equals("在职")){ |
| | | user.setStatus(1); |
| | | } |
| | | else { |
| | | user.setStatus(2); |
| | | } |
| | | if (userExcel.getSex().equals("男性")){ |
| | | user.setSex(1); |
| | | } |
| | | else { |
| | | user.setSex(2); |
| | | } |
| | | user.setRoleId("1412226235153731586"); |
| | | String deptname = user.getDeptId(); |
| | | String id =userDeptService.selectIn(deptname); |
| | | user.setDeptId(id); |
| | | //获取默认密码配置 |
| | | String initPassword = ParamCache.getValue(DEFAULT_PARAM_PASSWORD); |
| | | user.setPassword(initPassword); |