| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | 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, |