创建时间修改
continuous-integration/drone/push Build is passing Details

odoo切换查询方式
YXY 1 year ago
parent e8d47f6867
commit c50442b294

@ -453,18 +453,19 @@ public abstract class SyncAccountsJobAbstract {
List<String> uniqueKeyList = new ArrayList<>(); List<String> uniqueKeyList = new ArrayList<>();
for (int i = 0; i < row.size(); i++) { for (int i = 0; i < row.size(); i++) {
String rowKey = keyList.get(i); String rowKey = keyList.get(i);
String value = row.get(i);
if (createTimeKey.equals(rowKey.toLowerCase())){
createTime = value;
}
CJTSyncTypeRelation cjtSyncTypeRelation = queryFieldsMap.get(rowKey); CJTSyncTypeRelation cjtSyncTypeRelation = queryFieldsMap.get(rowKey);
if (cjtSyncTypeRelation == null) { if (cjtSyncTypeRelation == null) {
continue; continue;
} }
String larkLabel = cjtSyncTypeRelation.getLarkFileName(); String larkLabel = cjtSyncTypeRelation.getLarkFileName();
String value = row.get(i);
if (uniqueFields.contains(rowKey)) { if (uniqueFields.contains(rowKey)) {
uniqueKeyList.add(value); uniqueKeyList.add(value);
} }
if (createTimeKey.equals(rowKey.toLowerCase())){
createTime = value;
}
body.put(larkLabel, this.changeValueType(value, cjtSyncTypeRelation)); body.put(larkLabel, this.changeValueType(value, cjtSyncTypeRelation));
} }
uniqueKey = String.join("_", uniqueKeyList).toUpperCase() + "_" + addRecordRequest.getAppTable(); uniqueKey = String.join("_", uniqueKeyList).toUpperCase() + "_" + addRecordRequest.getAppTable();

Loading…
Cancel
Save