报错信息
continuous-integration/drone/push Build is passing Details

沃森川job同步飞书
YXY 1 year ago
parent cf7c129c87
commit d36d06ce89

@ -182,6 +182,7 @@ public abstract class SyncAccountsJobAbstract {
* @param context
*/
protected void sync(CJTJobContext context) {
String errorMessage = null;
CJTRequest cjtRequest = null;
CJTRequestBody cjtRequestBody = null;
Integer page = 0;
@ -216,11 +217,14 @@ public abstract class SyncAccountsJobAbstract {
}
} catch (Exception e) {
log.error("{} exception", this.getClassName(), e);
throw new RuntimeException(buildErrorBody(cjtRequest, e.getMessage()));
errorMessage = buildErrorBody(cjtRequest, e.getMessage());
} finally {
page++;
}
}while (!CollectionUtils.isEmpty(rows));
if (!StringUtils.isEmpty(errorMessage)){
throw new RuntimeException(errorMessage);
}
}
private List<String> getUniqueKey(List<String> keyList,List<List<String>> rows) {

Loading…
Cancel
Save