From 685a6664f4d83256421cfd4b177908c8da1d4c2f Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期二, 21 五月 2024 14:01:01 +0800 Subject: [PATCH] 田间灌溉项目管理 修改灌溉单元查一个接口 变为id --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java index 055966a..cbcbfbf 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_87_Up.java @@ -55,7 +55,7 @@ */ protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { DataV202404 dV1 = (DataV202404)data.getSubData() ; - DataCd87Vo cdData = new DataCd87Vo() ; + DataCd87Vo cdData = new DataCd87Vo(CodeV202404.getCodeName(dataCode)) ; dV1.subData = cdData ; int index = ProtocolConstantV206V202404.dataIndex ; cdData.controllerType = ByteUtil.bytes2Hex(bs, false, index, 1) ; @@ -73,10 +73,10 @@ short portLen = ByteUtilUnsigned.byte2Byte(bs, index) ; index++ ; - cdData.domain = ByteUtil.bytes2String_BE(bs, index, index + domainLen - 1) ; + cdData.domain = ByteUtil.bytes2String_LE(bs, index, index + domainLen - 1) ; index += domainLen ; - cdData.port = Integer.parseInt(ByteUtil.bytes2String_BE(bs, index, index + portLen - 1)) ; + cdData.port = Integer.parseInt(ByteUtil.bytes2String_LE(bs, index, index + portLen - 1)) ; } } -- Gitblit v1.8.0