#
Junjie
3 天以前 f033da325dd16825bbca0d1ac71cc76420dfc8a2
#
2个文件已修改
44 ■■■■■ 已修改文件
src/main/java/com/zy/core/network/real/ZyCrnRealConnect.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/network/real/ZyCrnRealConnect.java
@@ -182,28 +182,6 @@
            return response;
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            String sourceLocNo = Utils.getLocNo(command.getSourcePosX(), command.getSourcePosY(), command.getSourcePosZ());
            String targetLocNo = Utils.getLocNo(command.getDestinationPosX(), command.getDestinationPosY(), command.getDestinationPosZ());
            // 日志记录
            BasCrnpOptService bean = SpringUtils.getBean(BasCrnpOptService.class);
            BasCrnpOpt basCrnpOpt = new BasCrnpOpt(
                    command.getTaskNo().intValue(),    // 任务号
                    command.getCrnNo(),    // 堆垛机[非空]
                    new Date(),    // 下发时间
                    String.valueOf(command.getTaskMode()),    // 模式
                    sourceLocNo, //源库位
                    targetLocNo, //目标库位
                    null,    // 修改时间
                    null,    // 修改人员
                    null,    // 备注
                    JSON.toJSONString(command),    // 指令
                    JSON.toJSONString(getStatus()),    // 系统状态
                    1,    // 下发状态{0:未下发,1:已下发}
                    JSON.toJSONString(response)    // 响应
            );
            bean.insert(basCrnpOpt);
        }
        return response;
    }
src/main/java/com/zy/core/network/real/ZyDualCrnRealConnect.java
@@ -201,28 +201,6 @@
             return response;
         } catch (Exception e) {
             e.printStackTrace();
         }finally {
             String sourceLocNo = Utils.getLocNo(command.getSourcePosX(), command.getSourcePosY(), command.getSourcePosZ());
             String targetLocNo = Utils.getLocNo(command.getDestinationPosX(), command.getDestinationPosY(), command.getDestinationPosZ());
             // 日志记录
             BasDualCrnpOptService bean = SpringUtils.getBean(BasDualCrnpOptService.class);
             BasDualCrnpOpt basDualCrnp = new BasDualCrnpOpt(
                     command.getTaskNo(),    // 任务号
                     command.getCrnNo(),    // 堆垛机[非空]
                     new Date(),    // 下发时间
                     String.valueOf(command.getTaskMode()),    // 模式
                     sourceLocNo, //源库位
                     targetLocNo, //目标库位
                     null,    // 修改时间
                     null,    // 修改人员
                     null,    // 备注
                     JSON.toJSONString(command),    // 指令
                     JSON.toJSONString(getStatus()),    // 系统状态
                     1,    // 下发状态{0:未下发,1:已下发}
                     JSON.toJSONString(response)    // 响应
             );
             bean.insert(basDualCrnp);
         }
        return response;
    }