From 41aaa0cc7c5fe00724be8fa44764a1fbc0c46dc9 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 09 十月 2024 08:44:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/value/service/impl/IndItemValueServiceImpl.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/value/service/impl/IndItemValueServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/value/service/impl/IndItemValueServiceImpl.java index 5efbb4c..9a9e4e5 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/value/service/impl/IndItemValueServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/value/service/impl/IndItemValueServiceImpl.java @@ -3,13 +3,18 @@ import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.common.service.impl.BaseServiceImpl; import com.iailab.framework.common.util.object.BeanUtils; +import com.iailab.module.data.ind.item.vo.IndItemValueVO; import com.iailab.module.data.ind.value.dao.IndItemValueDao; +import com.iailab.module.data.ind.value.dto.QuerySourceValueDTO; import com.iailab.module.data.ind.value.entity.IndItemValueEntity; import com.iailab.module.data.ind.value.service.IndItemValueService; import com.iailab.module.data.ind.value.vo.IndItemValuePageReqVO; import com.iailab.module.data.ind.value.vo.IndItemValueSaveReqVO; +import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; +import java.util.List; +import java.util.Map; import java.util.UUID; /** @@ -47,4 +52,20 @@ public void delete(String id) { baseDao.deleteById(id); } + + /** + * 根据配置的数据源动态查询 + * @param dto + * @return + */ + @Override + public List<IndItemValueVO> getSourceValue(QuerySourceValueDTO dto) { + if (StringUtils.isEmpty(dto.getDataSource())) { + log.warn("数据源不能为空"); + return null; + } + + + return baseDao.getSourceValue(dto); + } } \ No newline at end of file -- Gitblit v1.9.3