From e241acb82959328535d8f903902863bd420df139 Mon Sep 17 00:00:00 2001
From: vince <757871790@qq.com>
Date: 星期一, 04 九月 2023 10:28:32 +0800
Subject: [PATCH] 增加zldz协议

---
 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