|
|
|
@ -200,7 +200,8 @@ public abstract class SyncAccountsJobAbstract {
|
|
|
|
|
LarkCompanyRelation companyRelation = context.getCompanyRelation();
|
|
|
|
|
LarkTableRelation tableRelation = context.getTableRelation();
|
|
|
|
|
LarkTableRequest request = new LarkTableRequest(companyRelation.getAppId(), companyRelation.getSecret(), tableRelation.getToAppToken(), tableRelation.getToTableId());
|
|
|
|
|
String date = DateUtils.ldt2str(now.minusDays(7L), DateUtils.YYYY_MM_DD);
|
|
|
|
|
int dayOfMonth = now.getDayOfMonth();
|
|
|
|
|
String date = dayOfMonth > 7 ? DateUtils.ldt2str(now.minusDays(7L), DateUtils.YYYY_MM_DD) : DateUtils.firstDayOfMonthToString();
|
|
|
|
|
List<String> recordList = erpLarkRelationMapper.queryWaitDeleteRecordList(date, getRequestUrl(), cjt);
|
|
|
|
|
List<String> waitDeleteList = new ArrayList<>();
|
|
|
|
|
for (String record : recordList) {
|
|
|
|
|