From cf757d7c54982301405b83ef18b1381672f69de1 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期日, 06 十月 2024 21:52:38 +0800 Subject: [PATCH] 指标值查询 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java index 5abbbad..9036965 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java @@ -3,12 +3,17 @@ 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.framework.common.util.object.ConvertUtils; import com.iailab.module.data.ind.category.entity.IndItemCategoryEntity; import com.iailab.module.data.ind.data.dao.IndDataSetDao; +import com.iailab.module.data.ind.data.dto.IndDataSetDTO; +import com.iailab.module.data.ind.data.dto.IndDataSetFieldDTO; import com.iailab.module.data.ind.data.entity.IndDataSetEntity; +import com.iailab.module.data.ind.data.service.IndDataSetFieldService; import com.iailab.module.data.ind.data.service.IndDataSetService; import com.iailab.module.data.ind.data.vo.IndDataSetPageReqVO; import com.iailab.module.data.ind.data.vo.IndDataSetSaveReqVO; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -23,6 +28,9 @@ */ @Service public class IndDataSetServiceImpl extends BaseServiceImpl<IndDataSetDao, IndDataSetEntity> implements IndDataSetService { + + @Autowired + private IndDataSetFieldService indDataSetFieldService; @Override @@ -59,4 +67,13 @@ public void delete(String id) { baseDao.deleteById(id); } + + @Override + public IndDataSetDTO getDet(String id) { + IndDataSetDTO result = new IndDataSetDTO(); + IndDataSetEntity dataSet = baseDao.selectById(id); + result = ConvertUtils.sourceToTarget(dataSet, IndDataSetDTO.class); + result.setFieldList(ConvertUtils.sourceToTarget(indDataSetFieldService.list(id), IndDataSetFieldDTO.class)); + return result; + } } \ No newline at end of file -- Gitblit v1.9.3