feat(可回溯): 回溯保存
调整逻辑
This commit is contained in:
+2
-3
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user