Junjie
1 天以前 dfc4f109affb68e8a2e5255e13ecb2ba013525c2
src/main/java/com/zy/core/plugin/store/StoreInTaskGenerationService.java
@@ -110,7 +110,9 @@
            return;
        }
        if (hasCreatedTask(context.getStationProtocol().getBarcode())) {
        long count = wrkMastService.count(new QueryWrapper<WrkMast>().eq("barcode", context.getStationProtocol().getBarcode()));
        if (count > 0) {
            policy.setSystemWarning(context, "系统任务已存在");
            return;
        }
@@ -157,11 +159,6 @@
        }
        return new StoreInTaskContext(basDevp, stationThread, stationObjModel, stationProtocol);
    }
    private boolean hasCreatedTask(String barcode) {
        List<WrkMast> wrkMasts = wrkMastService.list(new QueryWrapper<WrkMast>().eq("barcode", barcode));
        return !wrkMasts.isEmpty();
    }
    private void handleSyncApplyResponse(StoreInTaskPolicy policy, StoreInTaskContext context, InTaskApplyRequest request,