feat(可回溯): 回溯保存
调整逻辑
This commit is contained in:
+2
-3
@@ -60,9 +60,8 @@ public class RecallRecordApiServiceImpl implements RecallRecordApiService {
|
||||
newOrder.setArchived("0");
|
||||
newOrder.setComplete(isLastEvent ? "1" : "0");
|
||||
String tenantId = recallApiService.queryApiTenant(record.getAppKey());
|
||||
if (tenantId != null) {
|
||||
newOrder.setTenantId(tenantId);
|
||||
}
|
||||
Optional.ofNullable(tenantId)
|
||||
.ifPresent(newOrder::setTenantId);
|
||||
if (isLastEvent) {
|
||||
newOrder.setCompleteDate(System.currentTimeMillis());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user