feat(可回溯): 回溯保存

调整逻辑
This commit is contained in:
BrandWang
2023-05-18 10:55:44 +08:00
parent 9a698124ac
commit bc4036adae
@@ -60,9 +60,8 @@ public class RecallRecordApiServiceImpl implements RecallRecordApiService {
newOrder.setArchived("0"); newOrder.setArchived("0");
newOrder.setComplete(isLastEvent ? "1" : "0"); newOrder.setComplete(isLastEvent ? "1" : "0");
String tenantId = recallApiService.queryApiTenant(record.getAppKey()); String tenantId = recallApiService.queryApiTenant(record.getAppKey());
if (tenantId != null) { Optional.ofNullable(tenantId)
newOrder.setTenantId(tenantId); .ifPresent(newOrder::setTenantId);
}
if (isLastEvent) { if (isLastEvent) {
newOrder.setCompleteDate(System.currentTimeMillis()); newOrder.setCompleteDate(System.currentTimeMillis());
} }