| | |
| | | |
| | | String remoteDestination = extractFirstDestination(message.getDestinationLocationIds()); |
| | | // Integer stationId = Cools.isEmpty(remoteDestination) ? null : iotProperties.getPickStationMappings().get(remoteDestination); |
| | | Integer stationId =311; |
| | | Integer stationId =602; |
| | | if (stationId == null) { |
| | | return updateAsFailure(record, IotConstants.ERROR_CODE_STATION_MAPPING, "未找到目标出库口映射"); |
| | | } |
| | |
| | | param.setPalletId(message.getContainerId()); |
| | | param.setOrderId(resolveReferenceId(message)); |
| | | param.setStationId(String.valueOf(stationId)); |
| | | param.setSeq(1); |
| | | param.setBatchSeq("amazon"+new Date().getTime()); |
| | | param.setSeq(0); |
| | | R result = externalTaskFacadeService.createOutboundTask(param, true); |
| | | if (result == null || !Objects.equals(result.get("code"), 200)) { |
| | | return updateAsFailure(record, null, resolveResultMessage(result, "接收拣货指令失败")); |