|
|
@ -28,10 +28,7 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import java.text.DecimalFormat; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.*; |
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.concurrent.ExecutorService; |
|
|
|
import java.util.concurrent.Executors; |
|
|
@ -150,6 +147,12 @@ public class MatrixSprayStart extends BaseCommandHandler { |
|
|
|
sprayTask.setCacheParams(form.getParams()); |
|
|
|
|
|
|
|
OperationLog operationLog = new OperationLog(); |
|
|
|
Long matrixCraftId = Long.valueOf(Optional.ofNullable(sprayTask.getCacheParams().get("matrixCraftId")) |
|
|
|
.filter(Number.class::isInstance) |
|
|
|
.map(Number.class::cast) |
|
|
|
.map(Number::intValue) |
|
|
|
.orElse(0)); |
|
|
|
operationLog.setMatrixId(matrixCraftId); |
|
|
|
operationLog.setMatrixInfo(JSONUtil.toJsonStr(sprayTask.getCacheParams())); |
|
|
|
operationLogService.add(operationLog); |
|
|
|
|
|
|
|