瀏覽代碼

opc完善

hfxc226 2 年之前
父節點
當前提交
1b7caa5178

+ 40 - 0
platform-dao/src/main/java/com/platform/dao/dto/remote/RemoteOpcDTO.java

@@ -30,6 +30,38 @@ public class RemoteOpcDTO extends BaseDTO implements Serializable {
      * 是否重要监测点:0否1是
      */
     private Integer portFlag;
+    /**
+     * 最低阈值
+     */
+    private BigDecimal warnFirst;
+    /**
+     * 低阈值
+     */
+    private BigDecimal warnSecond;
+    /**
+     * 高阈值
+     */
+    private BigDecimal warnThird;
+    /**
+     * 最高阈值
+     */
+    private BigDecimal warnFour;
+    /**
+     * 最低阈值颜色
+     */
+    private String warnFirstColor;
+    /**
+     * 低阈值颜色
+     */
+    private String warnSecondColor;
+    /**
+     * 高阈值颜色
+     */
+    private String warnThirdColor;
+    /**
+     * 最高阈值颜色
+     */
+    private String warnFourColor;
     /**
      * x轴位置
      */
@@ -38,6 +70,14 @@ public class RemoteOpcDTO extends BaseDTO implements Serializable {
      * y轴位置
      */
     private Integer yPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgXPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgYPosition;
     /**
      * 位置宽度
      */

+ 40 - 0
platform-dao/src/main/java/com/platform/dao/entity/remote/RemoteOpc.java

@@ -29,6 +29,38 @@ public class RemoteOpc implements Serializable {
      * 是否重要监测点:0否1是
      */
     private Integer portFlag;
+    /**
+     * 最低阈值
+     */
+    private BigDecimal warnFirst;
+    /**
+     * 低阈值
+     */
+    private BigDecimal warnSecond;
+    /**
+     * 高阈值
+     */
+    private BigDecimal warnThird;
+    /**
+     * 最高阈值
+     */
+    private BigDecimal warnFour;
+    /**
+     * 最低阈值颜色
+     */
+    private String warnFirstColor;
+    /**
+     * 低阈值颜色
+     */
+    private String warnSecondColor;
+    /**
+     * 高阈值颜色
+     */
+    private String warnThirdColor;
+    /**
+     * 最高阈值颜色
+     */
+    private String warnFourColor;
     /**
      * x轴位置
      */
@@ -37,6 +69,14 @@ public class RemoteOpc implements Serializable {
      * y轴位置
      */
     private Integer yPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgXPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgYPosition;
     /**
      * 位置宽度
      */

+ 40 - 0
platform-dao/src/main/java/com/platform/dao/vo/query/remote/RemoteOpcVO.java

@@ -27,6 +27,38 @@ public class RemoteOpcVO extends BaseVO implements Serializable {
      * 是否重要监测点:0否1是
      */
     private Integer portFlag;
+    /**
+     * 最低阈值
+     */
+    private BigDecimal warnFirst;
+    /**
+     * 低阈值
+     */
+    private BigDecimal warnSecond;
+    /**
+     * 高阈值
+     */
+    private BigDecimal warnThird;
+    /**
+     * 最高阈值
+     */
+    private BigDecimal warnFour;
+    /**
+     * 最低阈值颜色
+     */
+    private String warnFirstColor;
+    /**
+     * 低阈值颜色
+     */
+    private String warnSecondColor;
+    /**
+     * 高阈值颜色
+     */
+    private String warnThirdColor;
+    /**
+     * 最高阈值颜色
+     */
+    private String warnFourColor;
     /**
      * x轴位置
      */
@@ -35,6 +67,14 @@ public class RemoteOpcVO extends BaseVO implements Serializable {
      * y轴位置
      */
     private Integer yPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgXPosition;
+    /**
+     * x轴位置图片
+     */
+    private Integer imgYPosition;
     /**
      * 位置宽度
      */

+ 16 - 0
platform-dao/src/main/resources/mapper/remote/RemoteOpcMapper.xml

@@ -8,6 +8,14 @@
                                      opc.position_num,
                                      opc.line,
                                      opc.type,
+                                     opc.warn_first,
+                                     opc.warn_second,
+                                     opc.warn_third,
+                                     opc.warn_four,
+                                     opc.warn_first_color,
+                                     opc.warn_second_color,
+                                     opc.warn_third_color,
+                                     opc.warn_four_color,
                                      opc.low,
                                      opc.high,
                                      opc.description,
@@ -18,6 +26,8 @@
                                      opc.position_flag,
                                      opc.x_position,
                                      opc.y_position,
+                                     opc.img_x_position,
+                                     opc.img_y_position,
                                      opc.width,
                                      opc.height,
                                      opc.ratio,
@@ -36,6 +46,10 @@
                                      opc.line,
                                      opc.type,
                                      opc.info,
+                                     opc.warn_first,
+                                     opc.warn_second,
+                                     opc.warn_third,
+                                     opc.warn_four,
                                      opc.low,
                                      opc.high,
                                      opc.description,
@@ -46,6 +60,8 @@
                                      opc.position_flag,
                                      opc.x_position,
                                      opc.y_position,
+                                     opc.img_x_position,
+                                     opc.img_y_position,
                                      opc.width,
                                      opc.height,
                                      opc.ratio,