|  |  | 
 |  |  |         array[8] = command.getDestinationPosZ(); | 
 |  |  |         OperateResult result = siemensNet.Write("DB8.0", array); | 
 |  |  |         if (result.IsSuccess) { | 
 |  |  |             // 日志记录 | 
 |  |  |             BasCrnOptService bean = SpringUtils.getBean(BasCrnOptService.class); | 
 |  |  |             BasCrnOpt basCrnOpt = new BasCrnOpt( | 
 |  |  |                     command.getTaskNo().intValue(),    // 任务号 | 
 |  |  |                     command.getCrnNo(),    // 堆垛机[非空] | 
 |  |  |                     new Date(),    // 下发时间 | 
 |  |  |                     command.getTaskModeType().toString(),    // 模式 | 
 |  |  |                     command.getSourcePosX().intValue(),    // 源排 | 
 |  |  |                     command.getSourcePosY().intValue(),    // 源列 | 
 |  |  |                     command.getSourcePosZ().intValue(),    // 源层 | 
 |  |  |                     null,    // 源站 | 
 |  |  |                     command.getDestinationPosX().intValue(),    // 目标排 | 
 |  |  |                     command.getDestinationPosY().intValue(),    // 目标列 | 
 |  |  |                     command.getDestinationPosZ().intValue(),    // 目标层 | 
 |  |  |                     null,    // 目标站 | 
 |  |  |                     null,    // 响应结果 | 
 |  |  |                     null,    // 修改时间 | 
 |  |  |                     null    // 修改人员 | 
 |  |  |             ); | 
 |  |  |             bean.insert(basCrnOpt); | 
 |  |  |  | 
 |  |  |             try { | 
 |  |  |                 // 日志记录 | 
 |  |  |                 BasCrnOptService bean = SpringUtils.getBean(BasCrnOptService.class); | 
 |  |  |                 BasCrnOpt basCrnOpt = new BasCrnOpt( | 
 |  |  |                         command.getTaskNo().intValue(),    // 任务号 | 
 |  |  |                         command.getCrnNo(),    // 堆垛机[非空] | 
 |  |  |                         new Date(),    // 下发时间 | 
 |  |  |                         command.getTaskModeType().toString(),    // 模式 | 
 |  |  |                         command.getSourcePosX().intValue(),    // 源排 | 
 |  |  |                         command.getSourcePosY().intValue(),    // 源列 | 
 |  |  |                         command.getSourcePosZ().intValue(),    // 源层 | 
 |  |  |                         null,    // 源站 | 
 |  |  |                         command.getDestinationPosX().intValue(),    // 目标排 | 
 |  |  |                         command.getDestinationPosY().intValue(),    // 目标列 | 
 |  |  |                         command.getDestinationPosZ().intValue(),    // 目标层 | 
 |  |  |                         null,    // 目标站 | 
 |  |  |                         null,    // 响应结果 | 
 |  |  |                         null,    // 修改时间 | 
 |  |  |                         null    // 修改人员 | 
 |  |  |                 ); | 
 |  |  |                 bean.insert(basCrnOpt); | 
 |  |  |             } catch (Exception ignore) {} | 
 |  |  |  | 
 |  |  |             log.info("堆垛机命令下发[id:{}] >>>>> {}", slave.getId(), JSON.toJSON(command)); | 
 |  |  |             OutputQueue.CRN.offer(MessageFormat.format("【{0}】[id:{1}] >>>>> 命令下发: {2}", DateUtils.convert(new Date()), slave.getId(), JSON.toJSON(command))); |