#
Junjie
2 天以前 0a850e560dd357e86a51e1f6e9ab0e54b13ba5e9
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,