From b7ce7e00151b719eb583db693189afa053d21115 Mon Sep 17 00:00:00 2001
From: wuzeyu <1223318623@qq.com>
Date: 星期一, 16 十二月 2024 10:32:58 +0800
Subject: [PATCH] 优化接口 获得全部取水口  重构返回结构,增加片区名称字段、增加县镇村名称字段

---
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/p206V1/TkDealIcRemainMoney.java |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/p206V1/TkDealIcRemainMoney.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/p206V1/TkDealIcRemainMoney.java
index 2fdc1e6..cac382a 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/p206V1/TkDealIcRemainMoney.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/p206V1/TkDealIcRemainMoney.java
@@ -130,20 +130,30 @@
         public Double remainMoney ; //鍓╀綑閲戦
 
         public void valueFrom(DataCd84Vo vo84, DataCd83OpenVo vo83Op, DataCd83CloseVo vo83Cl){
-            if(this.isAll0(this.icCardAddr)){
-                this.isVirIcCard = true ;
-            }else{
-                this.isVirIcCard = false ;
-            }
             if(vo84 != null){
+                if(this.isAll0(vo84.cardAddr)){
+                    this.isVirIcCard = true ;
+                }else{
+                    this.isVirIcCard = false ;
+                }
                 this.icCardAddr = vo84.cardAddr ;
                 this.icCardNo = vo84.cardNo ;
                 this.remainMoney = vo84.remainMoney ;
             }else if(vo83Op != null){
+                if(this.isAll0(vo83Op.icCardAddr)){
+                    this.isVirIcCard = true ;
+                }else{
+                    this.isVirIcCard = false ;
+                }
                 this.icCardAddr = vo83Op.icCardAddr ;
                 this.icCardNo = vo83Op.icCardNo ;
                 this.remainMoney = vo83Op.remainMoney ;
             }else if(vo83Cl != null){
+                if(this.isAll0(vo83Cl.icCardAddr)){
+                    this.isVirIcCard = true ;
+                }else{
+                    this.isVirIcCard = false ;
+                }
                 this.icCardAddr = vo83Cl.icCardAddr ;
                 this.icCardNo = vo83Cl.icCardNo ;
                 this.remainMoney = vo83Cl.remainMoney ;

--
Gitblit v1.8.0