fix:发送数字孪生优化
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user