#
Junjie
昨天 b3f70386af87bb9e6bf87270d23ba2a8634c32d9
src/main/java/com/zy/asrs/task/PlannerScheduler.java
@@ -21,11 +21,14 @@
    @Scheduled(fixedDelay = 3000)
    public void schedulePlanner() {
        try {
            String crnRunMethod = "normal";
            Config crnRunMethodConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "crnRunMethod"));
            if(crnRunMethodConfig != null) {
                if (!crnRunMethodConfig.getValue().equals("solver")) {
                    return;
                crnRunMethod = crnRunMethodConfig.getValue();
                }
            if (!crnRunMethod.equals("solver")) {
                return;
            }
            JSONObject result = plannerService.calculateAndSaveSchedule();
            // 日志记录可以根据需要添加,避免过于频繁