ソースを参照

设备可视化优化

3254194295 9 ヶ月 前
コミット
764d6fa3f7

+ 3 - 0
platform-dao/src/main/java/com/platform/dao/dto/sb/SbInfoDTO.java

@@ -27,6 +27,9 @@ import java.util.List;
 @Accessors(chain = true)
 @EqualsAndHashCode(callSuper = true)
 public class SbInfoDTO extends BaseDTO implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
     /**
      * 报废日期
      */

+ 3 - 0
platform-dao/src/main/java/com/platform/dao/dto/sb/SbPositionDTO.java

@@ -22,6 +22,9 @@ import java.time.LocalDateTime;
 @Accessors(chain = true)
 @EqualsAndHashCode(callSuper = true)
 public class SbPositionDTO extends BaseDTO implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
     /**
      * opc标识:0否1是
      */

+ 3 - 0
platform-dao/src/main/java/com/platform/dao/entity/sb/SbInfo.java

@@ -20,6 +20,9 @@ import java.time.LocalDateTime;
 @Table(name = "t_sb_info")
 @Data
 public class SbInfo implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
     /**
      * 报废日期
      */

+ 4 - 0
platform-dao/src/main/java/com/platform/dao/entity/sb/SbPosition.java

@@ -20,6 +20,10 @@ import java.time.LocalDateTime;
 @Data
 @Accessors(chain = true)
 public class SbPosition implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
+
     /**
      * opc标识:0否1是
      */

+ 3 - 0
platform-dao/src/main/java/com/platform/dao/vo/sb/SbInfoVO.java

@@ -28,6 +28,9 @@ import java.util.List;
 @Accessors(chain = true)
 @EqualsAndHashCode(callSuper = true)
 public class SbInfoVO extends BaseVO implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
     /**
      * 报废日期
      */

+ 4 - 1
platform-dao/src/main/java/com/platform/dao/vo/sb/SbPositionVO.java

@@ -18,6 +18,9 @@ import java.time.LocalDateTime;
 @Accessors(chain = true)
 @EqualsAndHashCode(callSuper = true)
 public class SbPositionVO extends BaseVO implements Serializable {
+    private Double positionX;//x坐标
+
+    private Double positionY;//y坐标
     /**
      * opc标识:0否 1是
      */
@@ -114,4 +117,4 @@ public class SbPositionVO extends BaseVO implements Serializable {
     private Integer sbTypeNum; // 设备类型数目
 
     private Integer sbNum; // 设备数
-}
+}

+ 3 - 1
platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

@@ -183,7 +183,9 @@ sb.sb_register_no,
 sb.check_type,
 sb.liu_liang,
 sb.yang_cheng,
-sb.scraped_date
+sb.scraped_date,
+sb.position_x,
+sb.position_y
     </sql>
 
     <sql id="deptSql">