Browse Source

fix:exa接口变化

pull/31/head
肖晋飞 1 month ago
parent
commit
c354cdefa5
  1. 26
      yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/controller/admin/exa/vo/Point.java
  2. 2
      yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/utils/EXAUtils.java

26
yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/controller/admin/exa/vo/Point.java

@ -27,29 +27,29 @@ public class Point {
public String GroupName;
@ExcelProperty("数据类型")
public Integer ItemType;
public Integer ItemType=5;
@ExcelProperty("描述")
@Schema(description = "描述", example = "芋道")
public String Descriptor;
public String Descriptor="";
@ExcelProperty("单位")
@Schema(description = "单位", example = "芋道")
public String EngUnits;
public String EngUnits="";
@ExcelProperty("数据来源")
public String Source;
public String Source="EXA";
@ExcelProperty("自动保存")
public Boolean AutoSave;
public Double UpperBound;
public Double LowerBound;
public Double UpperLimit;
public Double LowerLimit;
public Double UpperUpperLimit;
public Double LowerLowerLimit;
public String Comment;
public String Note;
public Boolean AutoSave=true;
public Double UpperBound=9999999.0;
public Double LowerBound=-9999999.0;
public Double UpperLimit=9999999.0;
public Double LowerLimit=-9999999.0;
public Double UpperUpperLimit=9999999.0;
public Double LowerLowerLimit=-9999999.0;
public String Comment="";
public String Note="";
}

2
yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/utils/EXAUtils.java

@ -251,7 +251,7 @@ public class EXAUtils {
//写入点号
public String setPoint(String EXA_IP, Point point) throws IOException {
String requestPathAddItem = "http://" + EXA_IP + ":9000/exawebapi/exaitem/AddItem";
String requestPathAddItem = "http://" + EXA_IP + ":9000/exawebapi/EXAItem/AddItemStd";
String param = JSON.toJSONString(point);
String result = Request.Post(requestPathAddItem)
.addHeader("Content-type", "application/json")

Loading…
Cancel
Save