From 01d6f8f32113137b83dffa888fdd80e293457646 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 31 十月 2024 18:18:30 +0800
Subject: [PATCH] 测点导入功能修改,增加计算点,常量点导入导出功能

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaMathPointServiceImpl.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaMathPointServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaMathPointServiceImpl.java
index 6d17ce7..5014dd2 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaMathPointServiceImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaMathPointServiceImpl.java
@@ -10,6 +10,7 @@
 import org.springframework.stereotype.Service;
 
 import java.util.Arrays;
+import java.util.UUID;
 
 /**
  * @author PanZhibao
@@ -27,6 +28,15 @@
     }
 
     @Override
+    public void add(String expression, String pointId) {
+        DaMathPointEntity entity = new DaMathPointEntity();
+        entity.setId(UUID.randomUUID().toString());
+        entity.setPointId(pointId);
+        entity.setExpression(expression);
+        baseDao.insert(entity);
+    }
+
+    @Override
     public DaMathPointDTO getByPoint(String pointId) {
         QueryWrapper<DaMathPointEntity> wrapper = new QueryWrapper<>();
         wrapper.eq("point_id", pointId);

--
Gitblit v1.9.3