| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | |
| | | } |
| | | |
| | | @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); |