|
|
|
@ -31,11 +31,12 @@ public class RCS { |
|
|
|
|
|
|
|
@SneakyThrows |
|
|
|
public static void init() { |
|
|
|
if (LogisticsRuntimeService.INSTANCE.findByEnvCode(1L) == null) { |
|
|
|
String fs = Joiner.on("\n").join(FileUtils.readLines(new File("./yvan-rcs-web/src/example/example1.json"), StandardCharsets.UTF_8)); |
|
|
|
JsonWrapper jw = new JsonWrapper(fs); |
|
|
|
if (LogisticsRuntimeService.INSTANCE.findByEnvCode(1L) == null) { |
|
|
|
LogisticsRuntimeService.INSTANCE.createEnv(1); |
|
|
|
LogisticsRuntime runtime = LogisticsRuntimeService.INSTANCE.findByEnvCode(1); |
|
|
|
|
|
|
|
LogisticsRuntimeService.INSTANCE.createEnv(1L); |
|
|
|
LogisticsRuntime runtime = LogisticsRuntimeService.INSTANCE.findByEnvCode(1L); |
|
|
|
runtime.loadMap(jw); |
|
|
|
|
|
|
|
runtime.start(); |
|
|
|
@ -43,8 +44,7 @@ public class RCS { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static void ok() |
|
|
|
{ |
|
|
|
public static void ok() { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|