Commit 8087fdf0 by wancheng

设备报屏更新

parent c48dd0a9
...@@ -59,6 +59,13 @@ public class ServiceHPBI003 extends ServiceBase { ...@@ -59,6 +59,13 @@ public class ServiceHPBI003 extends ServiceBase {
JSONObject jsonObject = (JSONObject) jsonArray.get(0); JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray idsArr = (JSONArray) jsonObject.get("ids"); JSONArray idsArr = (JSONArray) jsonObject.get("ids");
String idsStr = idsArr.getString(0); String idsStr = idsArr.getString(0);
JSONObject paramsObj = null;
if (jsonObject.get("params") instanceof String) {
paramsObj=JSON.parseObject((String) jsonObject.get("params"));
} else {
paramsObj= (JSONObject) jsonObject.get("params");
}
String deviceCodeStr = paramsObj.getString("deviceCode");
EiInfo eiInfo = new EiInfo(); EiInfo eiInfo = new EiInfo();
String serviceId = "S_BE_XP_17"; String serviceId = "S_BE_XP_17";
eiInfo.set(EiConstant.serviceId,serviceId); eiInfo.set(EiConstant.serviceId,serviceId);
...@@ -74,6 +81,7 @@ public class ServiceHPBI003 extends ServiceBase { ...@@ -74,6 +81,7 @@ public class ServiceHPBI003 extends ServiceBase {
//数据集入参 //数据集入参
Map params =new HashMap(); Map params =new HashMap();
params.put("companycode",companycode); params.put("companycode",companycode);
params.put("deviceCode",deviceCodeStr);
map.put("params",params); map.put("params",params);
List list =new ArrayList(); List list =new ArrayList();
list.add(map); list.add(map);
...@@ -122,6 +130,13 @@ public class ServiceHPBI003 extends ServiceBase { ...@@ -122,6 +130,13 @@ public class ServiceHPBI003 extends ServiceBase {
JSONObject jsonObject = (JSONObject) jsonArray.get(0); JSONObject jsonObject = (JSONObject) jsonArray.get(0);
JSONArray idsArr = (JSONArray) jsonObject.get("ids"); JSONArray idsArr = (JSONArray) jsonObject.get("ids");
String idsStr = idsArr.getString(0); String idsStr = idsArr.getString(0);
JSONObject paramsObj = null;
if (jsonObject.get("params") instanceof String) {
paramsObj=JSON.parseObject((String) jsonObject.get("params"));
} else {
paramsObj= (JSONObject) jsonObject.get("params");
}
String deviceCodeStr = paramsObj.getString("deviceCode");
EiInfo eiInfo = new EiInfo(); EiInfo eiInfo = new EiInfo();
String serviceId = "S_BE_XP_17"; String serviceId = "S_BE_XP_17";
eiInfo.set(EiConstant.serviceId,serviceId); eiInfo.set(EiConstant.serviceId,serviceId);
...@@ -137,6 +152,7 @@ public class ServiceHPBI003 extends ServiceBase { ...@@ -137,6 +152,7 @@ public class ServiceHPBI003 extends ServiceBase {
//数据集入参 //数据集入参
Map params =new HashMap(); Map params =new HashMap();
params.put("companycode",companycode); params.put("companycode",companycode);
params.put("deviceCode",deviceCodeStr);
map.put("params",params); map.put("params",params);
List list =new ArrayList(); List list =new ArrayList();
list.add(map); list.add(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment