From 3631219246be48aec1e745e94e5b28ff4e8799c8 Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期五, 20 十月 2023 19:35:54 +0800 Subject: [PATCH] 调整上海原版接口 --- igds-protocol-bhzn/src/main/java/com/ld/igds/protocol/bhzn/grainv1/RemoteGrainV1ServiceImpl.java | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/igds-protocol-bhzn/src/main/java/com/ld/igds/protocol/bhzn/grainv1/RemoteGrainV1ServiceImpl.java b/igds-protocol-bhzn/src/main/java/com/ld/igds/protocol/bhzn/grainv1/RemoteGrainV1ServiceImpl.java index 16be4b2..1000c64 100644 --- a/igds-protocol-bhzn/src/main/java/com/ld/igds/protocol/bhzn/grainv1/RemoteGrainV1ServiceImpl.java +++ b/igds-protocol-bhzn/src/main/java/com/ld/igds/protocol/bhzn/grainv1/RemoteGrainV1ServiceImpl.java @@ -37,8 +37,28 @@ public GrainResponse checkGrain(CheckGrainRequest request) { try { // 鐢熸垚绮儏淇℃伅 - String hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), request.getDepotId()); - + String hexStr = ""; + if("5323".equals(request.getCompanyId())){ + if("0P01".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "1"); + }else if("0P02".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "1"); + }else if("0P03".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "2"); + }else if("0P04".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "2"); + }else if("0P05".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "3"); + }else if("0P06".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "4"); + }else if("0P07".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "4"); + }else if("0P08".equals(request.getDepotId())){ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), "4"); + } + }else{ + hexStr = CommandBuild.getInstance().getMsgCheck(request.getSerId(), request.getDepotId()); + } // //閫氳浣跨敤鐨勬槸涓绘満閫氳 // DeviceSer mainSer = coreSerService.getCacheSer(ContextUtil.getDefaultCompanyId(), BhznGrainV1ServerUtils.DEFAULT_MAC_ID); -- Gitblit v1.9.3