Просмотр исходного кода

解决地图配置中添加设备选择背景色未存库问题

zhaojinyu 1 день назад
Родитель
Сommit
76d590bfbc

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

@@ -320,11 +320,15 @@ public class SasMapServiceImpl extends AbstractCrudService<SasMapsMapper, SasMap
         entity.setDeviceId(item.getDeviceId());
         entity.setImgId(item.getImgId());
         entity.setType(item.getType());
+        entity.setBackgroundColor(item.getBackgroundColor());
         entity.setX(item.getX() != null ? BigDecimal.valueOf(item.getX()) : null);
         entity.setY(item.getY() != null ? BigDecimal.valueOf(item.getY()) : null);
         entity.setWidth(item.getWidth());
         entity.setHeight(item.getHeight());
         entity.setAngle(item.getAngle());
+        entity.setFontColor(item.getFontColor());
+        entity.setThickness(item.getThickness());
+        entity.setFontSize(item.getFontSize());
         entity.setText(item.getText());
         entity.setCreateTime(now);
         entity.setUpdateTime(now);

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

@@ -46,6 +46,8 @@ public class MapSaveWithDevicesRequest {
 
         private String type;
 
+        private String backgroundColor;
+
         private Double x;
 
         private Double y;
@@ -56,6 +58,12 @@ public class MapSaveWithDevicesRequest {
 
         private Double angle;
 
+        private String fontColor;
+
+        private Integer thickness;
+
+        private Integer fontSize;
+
         private String text;
     }
 }