zhanghua
2024-09-05 a4cd4c2d98392cd1036f36b96c262878743a7e63
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;