fix:发送数字孪生优化

This commit is contained in:
zhouz
2024-07-03 15:36:33 +08:00
parent 85c6e2cf49
commit e8bccfced1
2 changed files with 4 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ public class LmsToBigScreenServiceImpl implements LmsToBigScreenService {
JSONObject json = new JSONObject();
for (URLEnum url : URLEnum.values()) {
String product_area = url.getProduct_area();
if (product_area.equals("BLK") || product_area.equals("B2")) {
continue;
}
JSONArray rows = WQLObject.getWQLObject("em_bi_monitordevice").query("send_szls = '1' AND product_area = '" + product_area + "'").getResultJSONArray(0);
JSONObject device_info = wmsToAcsService.getHotPointStatus(rows);
json.put(product_area, device_info.getJSONArray("data"));

View File

@@ -117,9 +117,7 @@ public class AcsUtil {
throw new BadRequestException("未查询到区域对应的acs地址");
}
//String url = acs_url + api;
//String url ="10.1.3.96:8011/"+ api;
String url ="10.21.1.196:8011/"+ api;
String url = acs_url + api;
try {
String resultMsg = HttpRequest.post(url)
.body(String.valueOf(list))