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.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());
}