diff --git a/src/com/szpg/rmi/RemoteCH4CommandAction.java b/src/com/szpg/rmi/RemoteCH4CommandAction.java index d1d1b7b..b3d2368 100644 --- a/src/com/szpg/rmi/RemoteCH4CommandAction.java +++ b/src/com/szpg/rmi/RemoteCH4CommandAction.java @@ -1,5 +1,6 @@ package com.szpg.rmi; +import com.szpg.plc.message.command.write.SetCH4ThresholdWordCommand; import org.apache.log4j.Logger; import org.apache.struts2.ServletActionContext; @@ -227,6 +228,7 @@ command.setMessageProducerId(sour); command.setDestinationId(dest); command.setMemoryArea(FINSConstants.MEMORY_WORK_AREA_WORD); + ((SetCH4ThresholdWordCommand) command).setThreshold(Float.parseFloat(threshold)); int start = blObj.getKszdz(); int end = blObj.getJszdz(); diff --git a/src/com/szpg/rmi/RemoteCH4CommandAction.java b/src/com/szpg/rmi/RemoteCH4CommandAction.java index d1d1b7b..b3d2368 100644 --- a/src/com/szpg/rmi/RemoteCH4CommandAction.java +++ b/src/com/szpg/rmi/RemoteCH4CommandAction.java @@ -1,5 +1,6 @@ package com.szpg.rmi; +import com.szpg.plc.message.command.write.SetCH4ThresholdWordCommand; import org.apache.log4j.Logger; import org.apache.struts2.ServletActionContext; @@ -227,6 +228,7 @@ command.setMessageProducerId(sour); command.setDestinationId(dest); command.setMemoryArea(FINSConstants.MEMORY_WORK_AREA_WORD); + ((SetCH4ThresholdWordCommand) command).setThreshold(Float.parseFloat(threshold)); int start = blObj.getKszdz(); int end = blObj.getJszdz(); diff --git a/src/com/szpg/rmi/RemoteHSCommandAction.java b/src/com/szpg/rmi/RemoteHSCommandAction.java index 3960bed..9e131d7 100644 --- a/src/com/szpg/rmi/RemoteHSCommandAction.java +++ b/src/com/szpg/rmi/RemoteHSCommandAction.java @@ -1,5 +1,6 @@ package com.szpg.rmi; +import com.szpg.plc.message.command.write.SetHSThresholdWordCommand; import org.apache.log4j.Logger; import org.apache.struts2.ServletActionContext; @@ -126,7 +127,7 @@ command.setDestinationId(dest); command.setMemoryArea(FINSConstants.MEMORY_DM_AREA); - + try { // 没有找到对应的配置项,直接返回 String start = ""; @@ -227,6 +228,7 @@ command.setMessageProducerId(sour); command.setDestinationId(dest); command.setMemoryArea(FINSConstants.MEMORY_WORK_AREA_WORD); + ((SetHSThresholdWordCommand) command).setThreshold(Float.parseFloat(threshold)); int start = blObj.getKszdz(); int end = blObj.getJszdz();