潘志宝
2024-12-23 d6464955dc20cb527f7be02ac8631c1effb1768a
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);