| | |
| | | userParam.setOpenid(openid); //openid |
| | | userParam.setIsDy(Byte.parseByte("0")); |
| | | userParam.setMobile(""); |
| | | userParam.setAccountId(dingUserInfo.getAccountId()); |
| | | String encodePassword = passwordEncoder.encode("123456"); |
| | | userParam.setPassword(encodePassword); //密码 |
| | | userParam.setStatus(1); //状态 |
| | | adminService.save(userParam); |
| | | dingCommon.getEmpInfoByCode(dingUserInfo.getEmployeeCode()); |
| | | DingUserInfo empInfoByCode = dingCommon.getEmpInfoByCode(dingUserInfo.getEmployeeCode()); |
| | | //查询部门是否存在, |
| | | UmsDepart depart = departService.getById(dingUserInfo.getOrgId()); |
| | | UmsDepart depart = departService.getById(empInfoByCode.getOrgId()); |
| | | log.info("部门---------------->{}",depart); |
| | | //员工信息,关联组织 |
| | | if (Objects.nonNull(depart)) { |
| | | UmsDepartManage departManage = new UmsDepartManage(); |