zhanghua
2024-03-25 0fe078a6f1c598f77316dc7c002fe069a27c54e9
ycl-platform/src/main/java/com/ycl/common/dingding/DingCommon.java
@@ -94,6 +94,12 @@
            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;