From af61e5f6de17791b5f8a07d3324c272a62eca5bf Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期五, 26 七月 2024 10:24:32 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V1_0_0/CommandP206V1_0_0Ctrl.java | 36 ++++++++++++++++++++++++++++++++++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V1_0_0/CommandP206V1_0_0Ctrl.java b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V1_0_0/CommandP206V1_0_0Ctrl.java index f784196..8a475f0 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V1_0_0/CommandP206V1_0_0Ctrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V1_0_0/CommandP206V1_0_0Ctrl.java @@ -29,7 +29,9 @@ if(com == null){ rt = this.connect() ;//杩炴帴閫氫俊涓棿浠舵祴璇� }else{ - if(com.equals("21")){ + if(com.equals("10")){ + rt = this.cd10() ; + }else if(com.equals("21")){ rt = this.cd21() ; }else if(com.equals("37")){ rt = this.cd37() ; @@ -65,6 +67,10 @@ rt = this.cd97() ; }else if(com.equals("98")){ rt = this.cd98() ; + }else if(com.equals("99")){ + rt = this.cd99() ; + }else if(com.equals("A0")){ + rt = this.cdA0() ; }else if(com.equals("B0")){ rt = this.cdB0() ; } @@ -79,6 +85,12 @@ */ private BaseResponse connect(){ return this.sendTest() ; + } + + private BaseResponse cd10(){ + Com10Vo comVo = new Com10Vo() ; + comVo.rtuAddr = "532328059995" ;//鍓�6浣嶆槸琛屾斂鍖哄垝鐮侊紝鍚�6浣嶆槸搴忓垪鍙锋渶澶ф槸065535 + return this.sendCom2Mw(this.command(CodeV1_0_1.cd_10, comVo, null)) ; } private BaseResponse cd21(){ @@ -140,7 +152,7 @@ private BaseResponse cd3C(){ Com3CVo comVo = new Com3CVo() ; - comVo.minute = 60 ; + comVo.minute = 5 ; return this.sendCom2Mw(this.command(CodeV1_0_1.cd_3C, comVo, null)) ; } @@ -175,6 +187,26 @@ return this.sendCom2Mw(this.command(CodeV1_0_1.cd_98, comVo, null)) ; } + //瀹氭椂鍏抽榾寮�闃� + private BaseResponse cd99(){ + Com99Vo comVo = new Com99Vo() ; + comVo.icCardNo = CommandP206V1_0_0Ctrl.vsIcCardNo; + comVo.moneyRemain = 234.56 ; + comVo.waterPrice = 1.2 ; + comVo.minutes = 5 ; + return this.sendCom2Mw(this.command(CodeV1_0_1.cd_99, comVo, null)) ; + } + + //瀹氶噺鍏抽榾寮�闃� + private BaseResponse cdA0(){ + ComA0Vo comVo = new ComA0Vo() ; + comVo.icCardNo = CommandP206V1_0_0Ctrl.vsIcCardNo; + comVo.moneyRemain = 234.56 ; + comVo.waterPrice = 1.2 ; + comVo.waterAmount = 10 ; + return this.sendCom2Mw(this.command(CodeV1_0_1.cd_98, comVo, null)) ; + } + private BaseResponse cdB0(){ return this.sendCom2Mw(this.command(CodeV1_0_1.cd_B0, null, null)) ; } -- Gitblit v1.8.0