|
|
|
@ -69,6 +69,8 @@ public class ExtraResolveStrategyService {
|
|
|
|
|
return this.resolveChooseFault(extra); |
|
|
|
|
case CONFIRM_YK: |
|
|
|
|
return this.resolveConfirmRemote(extra); |
|
|
|
|
case SHOW_PARAM: |
|
|
|
|
return this.resolveShowParam(extra); |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -77,6 +79,17 @@ public class ExtraResolveStrategyService {
|
|
|
|
|
return JSONObject.parseObject(JSON.toJSONString(extra),ExtraVO.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private ExtraVO resolveShowParam(Map<String,Object> extra) { |
|
|
|
|
ExtraVO result = new ExtraVO(); |
|
|
|
|
result.setFuncCode(FuncRouteEnum.SHOW_PARAM.getFuncCode()); |
|
|
|
|
result.setType(FuncRouteEnum.SHOW_PARAM.getType().getType()); |
|
|
|
|
Map<String,Object> param = new HashMap(1); |
|
|
|
|
DataVO data = JSONObject.parseObject(JSON.toJSONString(extra.get("data")),DataVO.class); |
|
|
|
|
param.put("data", data); |
|
|
|
|
result.setParams(param); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private ExtraVO resolveConfirmRemote(Map<String,Object> extra) { |
|
|
|
|
ExtraVO result = new ExtraVO(); |
|
|
|
|
RemoteParamVO remoteParam = JSONObject.parseObject(JSON.toJSONString(extra.get("data")), RemoteParamVO.class); |
|
|
|
@ -86,6 +99,8 @@ public class ExtraResolveStrategyService {
|
|
|
|
|
if(funcVOR.isSuccess()) { |
|
|
|
|
Map<String,Object> param = new HashMap(1); |
|
|
|
|
param.put("control",funcVOR.getData()); |
|
|
|
|
param.put("deviceName",remoteParam.getDeviceName()); |
|
|
|
|
param.put("projectName",remoteParam.getProjectName()); |
|
|
|
|
param.put("value",remoteParam.getValue()); |
|
|
|
|
result.setParams(param); |
|
|
|
|
} |
|
|
|
|