From 6be968854d7a134cf31b8af7b8ffb219da5cee55 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 05 七月 2024 16:36:40 +0800
Subject: [PATCH] p206V1.0.0协议与硬件联调,并修改完善代码。
---
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmOpenCloseValveLast.java | 66 +++++++++++++++++----------------
1 files changed, 34 insertions(+), 32 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmOpenCloseValveLast.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmOpenCloseValveLast.java
index cc412b3..25e7de2 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmOpenCloseValveLast.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmOpenCloseValveLast.java
@@ -216,7 +216,7 @@
/**
* 鏈浣跨敤鐢甸噺
*/
- public Double thisEle;
+ public Double clThisEle;
public void valueFrom(DataV1_0_1 dV1_0_1, DataCd83OpenVo dataCd83OpenVo) throws Exception {
this.opDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV1_0_1.dt);
@@ -248,7 +248,7 @@
this.clOrderNo = null;//姹熸捣鍗忚鐗规湁
this.clEleTotalAmount = null;//姹熸捣鍗忚鐗规湁
this.clWaterRemainUser = null;//姹熸捣鍗忚鐗规湁
- this.thisEle = null;//姹熸捣鍗忚鐗规湁
+ this.clThisEle = null;//姹熸捣鍗忚鐗规湁
}
public void valueFrom84(DataV202404 dataV202404, DataCd84Vo cdData) throws Exception {
@@ -277,7 +277,7 @@
this.clOrderNo = null;//姹熸捣鍗忚鐗规湁
this.clEleTotalAmount = null;//姹熸捣鍗忚鐗规湁
this.clWaterRemainUser = null;//姹熸捣鍗忚鐗规湁
- this.thisEle = null;//姹熸捣鍗忚鐗规湁
+ this.clThisEle = null;//姹熸捣鍗忚鐗规湁
}
public void valueFrom85(DataV202404 dataV202404, DataCd85Vo cdData) throws Exception {
@@ -294,7 +294,7 @@
this.clOrderNo = cdData.orderNo;
this.clEleTotalAmount = cdData.eleTotalAmount;
this.clWaterRemainUser = cdData.waterRemain;
- this.thisEle = cdData.thisEle;
+ this.clThisEle = cdData.thisEle;
}
public void updateFrom(DataV1_0_1 dV1_0_1, DataCd83OpenVo dataCd83OpenVo, boolean clearCloseValve) throws Exception {
@@ -307,22 +307,7 @@
this.openDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataCd83OpenVo.openDt);
if (clearCloseValve) {
- this.clDt = null;
- this.clType = null;
- this.clTotalAmount = null;
- this.clIcCardNo = null;
- this.clIcCardAddr = null;
- this.clRemainMoney = null;
- this.clThisAmount = null;
- this.clThisMoney = null;
- this.clThisTime = null;
- this.clOpenDt = null;
- this.closeDt = null;
-
- this.clOrderNo = null;//姹熸捣鍗忚鐗规湁
- this.clEleTotalAmount = null;//姹熸捣鍗忚鐗规湁
- this.clWaterRemainUser = null;//姹熸捣鍗忚鐗规湁
- this.thisEle = null;//姹熸捣鍗忚鐗规湁
+ this.clearCloseValue();
}
}
@@ -340,18 +325,35 @@
this.closeDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataCd83CloseVo.closeDt) ;
if(clearOpenValve){
- this.opDt = null ;
- this.opType = null ;
- this.opTotalAmount = null ;
- this.opIcCardNo = null ;
- this.opIcCardAddr = null ;
- this.opRemainMoney = null ;
- this.openDt = null ;
-
- this.clOrderNo = null;//姹熸捣鍗忚鐗规湁
- this.clEleTotalAmount = null;//姹熸捣鍗忚鐗规湁
- this.clWaterRemainUser = null;//姹熸捣鍗忚鐗规湁
- this.thisEle = null;//姹熸捣鍗忚鐗规湁
+ this.clearOpenValue();
}
}
+
+ public void clearCloseValue(){
+ this.clDt = null;
+ this.clType = null;
+ this.clTotalAmount = null;
+ this.clIcCardNo = null;
+ this.clIcCardAddr = null;
+ this.clRemainMoney = null;
+ this.clThisAmount = null;
+ this.clThisMoney = null;
+ this.clThisTime = null;
+ this.clOpenDt = null;
+ this.closeDt = null;
+
+ this.clOrderNo = null;//姹熸捣鍗忚鐗规湁
+ this.clEleTotalAmount = null;//姹熸捣鍗忚鐗规湁
+ this.clWaterRemainUser = null;//姹熸捣鍗忚鐗规湁
+ this.clThisEle = null;//姹熸捣鍗忚鐗规湁
+ }
+ public void clearOpenValue(){
+ this.opDt = null ;
+ this.opType = null ;
+ this.opTotalAmount = null ;
+ this.opIcCardNo = null ;
+ this.opIcCardAddr = null ;
+ this.opRemainMoney = null ;
+ this.openDt = null ;
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0