From 427d87e5572d72d0e3aaa4364e4f53569222e321 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期二, 25 三月 2025 21:40:05 +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/p206V202404test/CommandP206V202404Ctrl.java | 91 ++++++++++++++++++++++++---------------------
1 files changed, 48 insertions(+), 43 deletions(-)
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V202404test/CommandP206V202404Ctrl.java b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V202404test/CommandP206V202404Ctrl.java
index 1a4430f..28fa373 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V202404test/CommandP206V202404Ctrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/p206V202404test/CommandP206V202404Ctrl.java
@@ -18,53 +18,58 @@
public class CommandP206V202404Ctrl extends ComSupportP206V202404 {
@GetMapping(path = "test")
- public BaseResponse<String> test(String com) {
+ public BaseResponse<String> test(String rtuAddr, String com) {
BaseResponse<String> rt = null ;
- if(com == null){
+ if(rtuAddr == null || rtuAddr.trim().equals("")){
rt = this.connect() ;//杩炴帴閫氫俊涓棿浠舵祴璇�
}else{
- try{
- if(com.equals("10")){
- rt = this.cd10() ;
- }else if(com.equals("15")){
- rt = this.cd15() ;
- }else if(com.equals("16")){
- rt = this.cd16() ;
- }else if(com.equals("21")){
- rt = this.cd21() ;
- }else if(com.equals("22")){
- rt = this.cd22() ;
- }else if(com.equals("23")){
- rt = this.cd23() ;
- }else if(com.equals("24")){
- rt = this.cd24() ;
- }else if(com.equals("26")){
- rt = this.cd26() ;
- }else if(com.equals("31")){
- rt = this.cd31() ;
- }else if(com.equals("55")){
- rt = this.cd55(1) ;
- }else if(com.equals("65")){
- rt = this.cd65(1) ;
- }else if(com.equals("86")){
- rt = this.cd86() ;
- }else if(com.equals("87")){
- rt = this.cd87() ;
- }else if(com.equals("92")){
- rt = this.cd92() ;
- }else if(com.equals("93")){
- rt = this.cd93() ;
- }else if(com.equals("9C")){
- rt = this.cd9C() ;
- }else if(com.equals("A2")){
- rt = this.cdA2() ;
- }else if(com.equals("A3")){
- rt = this.cdA3() ;
- }else{
- rt = this.cdXY(com) ;//鍙戦�佸浐瀹氬弬鏁癤Y鐨勫懡浠�, 渚嬪懡浠odeV202404.cd_9C
+ this.rtuAddr = rtuAddr ;
+ if(com == null || com.trim().equals("")){
+ rt = this.connect() ;//杩炴帴閫氫俊涓棿浠舵祴璇�
+ }else{
+ try{
+ if(com.equals("10")){
+ rt = this.cd10() ;
+ }else if(com.equals("15")){
+ rt = this.cd15() ;
+ }else if(com.equals("16")){
+ rt = this.cd16() ;
+ }else if(com.equals("21")){
+ rt = this.cd21() ;
+ }else if(com.equals("22")){
+ rt = this.cd22() ;
+ }else if(com.equals("23")){
+ rt = this.cd23() ;
+ }else if(com.equals("24")){
+ rt = this.cd24() ;
+ }else if(com.equals("26")){
+ rt = this.cd26() ;
+ }else if(com.equals("31")){
+ rt = this.cd31() ;
+ }else if(com.equals("55")){
+ rt = this.cd55(1) ;
+ }else if(com.equals("65")){
+ rt = this.cd65(1) ;
+ }else if(com.equals("86")){
+ rt = this.cd86() ;
+ }else if(com.equals("87")){
+ rt = this.cd87() ;
+ }else if(com.equals("92")){
+ rt = this.cd92() ;
+ }else if(com.equals("93")){
+ rt = this.cd93() ;
+ }else if(com.equals("9C")){
+ rt = this.cd9C() ;
+ }else if(com.equals("A2")){
+ rt = this.cdA2() ;
+ }else if(com.equals("A3")){
+ rt = this.cdA3() ;
+ }else{
+ rt = this.cdXY(com) ;//鍙戦�佸浐瀹氬弬鏁癤Y鐨勫懡浠�, 渚嬪懡浠odeV202404.cd_9C
+ }
+ }catch (Exception e){
+ e.printStackTrace();
}
- }catch (Exception e){
- e.printStackTrace();
}
}
return rt ;
--
Gitblit v1.8.0