Ver código fonte

完善电子地图相关接口

hanzhengyi 6 dias atrás
pai
commit
663d8e08d9

+ 8 - 0
service-sas/service-sas-biz/src/main/java/com/usky/sas/service/impl/SasMapServiceImpl.java

@@ -134,6 +134,14 @@ public class SasMapServiceImpl extends AbstractCrudService<SasMapsMapper, SasMap
                 di.setType(d.getType());
                 di.setX(d.getX() != null ? d.getX().doubleValue() : null);
                 di.setY(d.getY() != null ? d.getY().doubleValue() : null);
+                di.setWidth(d.getWidth());
+                di.setHeight(d.getHeight());
+                di.setAngle(d.getAngle());
+                di.setBackgroundColor(d.getBackgroundColor());
+                di.setFontColor(d.getFontColor());
+                di.setThickness(d.getThickness());
+                di.setFontSize(d.getFontSize());
+                di.setText(d.getText());
                 if (d.getImgId() != null && !d.getImgId().isEmpty()) {
                     SasPic imgPic = sasPicMapper.selectById(d.getImgId());
                     if (imgPic != null) {

+ 8 - 0
service-sas/service-sas-biz/src/main/java/com/usky/sas/service/vo/MapListItem.java

@@ -50,7 +50,15 @@ public class MapListItem {
         private String deviceName;
         private Double x;
         private Double y;
+        private Double width;
+        private Double height;
+        private Double angle;
         private String type;
+        private String backgroundColor;
+        private String fontColor;
+        private Integer thickness;
+        private Integer fontSize;
+        private String text;
         /** 点位图标完整访问 URL */
         private String imgUrl;
         /** 绑定的设备详情(含设备类型名称) */