Pārlūkot izejas kodu

完善液位高度和宽度

hfxc226 2 gadi atpakaļ
vecāks
revīzija
3d90c21f10

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

@@ -96,6 +96,10 @@ public class RemoteOpcDTO extends BaseDTO implements Serializable {
      * 图片位置高度
      */
     private BigDecimal imgHeight;
+    /**
+     * 图片方向(开关点位type=2:图片有上下左右四个方向)
+     */
+    private BigDecimal imgPosition;
     /**
      * 位置宽度
      */

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

@@ -93,6 +93,10 @@ public class RemoteOpc implements Serializable {
      * 图片位置高度
      */
     private BigDecimal imgHeight;
+    /**
+     * 图片方向(开关点位type=2:图片有上下左右四个方向)
+     */
+    private BigDecimal imgPosition;
     /**
      * 位置宽度
      */

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

@@ -91,6 +91,10 @@ public class RemoteOpcVO extends BaseVO implements Serializable {
      * 图片位置高度
      */
     private BigDecimal imgHeight;
+    /**
+     * 图片方向(开关点位type=2:图片有上下左右四个方向)
+     */
+    private BigDecimal imgPosition;
     /**
      * 位置宽度
      */

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

@@ -31,6 +31,7 @@
                                      opc.img_y_position,
                                      opc.img_width,
                                      opc.img_height,
+                                     opc.img_position,
                                      opc.width,
                                      opc.height,
                                      opc.ratio,
@@ -68,6 +69,7 @@
                                      opc.img_y_position,
                                      opc.img_width,
                                      opc.img_height,
+                                     opc.img_position,
                                      opc.width,
                                      opc.height,
                                      opc.ratio,