Junjie
昨天 dfc4f109affb68e8a2e5255e13ecb2ba013525c2
#入库任务优化
1个文件已修改
9 ■■■■■ 已修改文件
src/main/java/com/zy/core/plugin/store/StoreInTaskGenerationService.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,