|
@@ -69,6 +69,7 @@ public class WeComUserDataJob1 {
|
|
|
String cursor = "";
|
|
|
do {
|
|
|
String res = getUserDetailList(staff.getCarrierId(), cursor);
|
|
|
+ log.info("updateUserList res={} cursor={}", res, cursor);
|
|
|
JSONObject jsonObject = JSONObject.parseObject(res);
|
|
|
Integer errCode = jsonObject.getInteger("errcode");
|
|
|
if (errCode != 0) {
|
|
@@ -125,7 +126,7 @@ public class WeComUserDataJob1 {
|
|
|
break;
|
|
|
}
|
|
|
cursor = nextCursor;
|
|
|
- } while (StringUtils.isEmpty(cursor));
|
|
|
+ } while (StringUtils.isNotEmpty(cursor));
|
|
|
} catch (IOException e) {
|
|
|
LarkRobotUtil.sendMessage("updateUser error" + e);
|
|
|
log.error("updateUser error", e);
|
|
@@ -213,7 +214,7 @@ public class WeComUserDataJob1 {
|
|
|
userService.insertStaffWithUser(externalUserId, staff);
|
|
|
}
|
|
|
}
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
LarkRobotUtil.sendMessage("insertStaffWithUserJob error" + e);
|
|
|
log.error("insertStaffWithUserJob error", e);
|
|
|
}
|