| | |
| | | DingUserInfo dingUserInfo = BeanUtil.toBean(resObj, DingUserInfo.class); |
| | | String accId = DingEncodeUtil.getMD5(resObj.getString("employeeCode").getBytes()); |
| | | dingUserInfo.setUserId(Long.parseLong(accId)); |
| | | |
| | | String employeeCode = resObj.getString("employeeCode"); |
| | | JSONArray users = getAccountId(Arrays.asList(employeeCode)); |
| | | JSONObject jsonObject = users.getJSONObject(0); |
| | | String accountId = jsonObject.getString("accountId"); |
| | | dingUserInfo.setAccountId(Long.parseLong(accountId)); |
| | | return dingUserInfo; |
| | | } |
| | | return null; |