From bbe7acfbe5a4c08d6edc91eaf81dcecf9d630e18 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期日, 15 十二月 2024 15:10:50 +0800
Subject: [PATCH] collectQuality

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetServiceImpl.java |   23 +++++++++++++++++++++++
 1 files changed, 23 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 25f46b7..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,16 +3,22 @@
 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;
 
 import java.util.Date;
+import java.util.List;
 import java.util.UUID;
 
 /**
@@ -23,10 +29,18 @@
 @Service
 public class IndDataSetServiceImpl extends BaseServiceImpl<IndDataSetDao, IndDataSetEntity> implements IndDataSetService {
 
+    @Autowired
+    private IndDataSetFieldService indDataSetFieldService;
+
 
     @Override
     public PageResult<IndDataSetEntity> page(IndDataSetPageReqVO reqVO) {
         return baseDao.selectPage(reqVO);
+    }
+
+    @Override
+    public List<IndDataSetEntity> list(IndDataSetPageReqVO reqVO) {
+        return baseDao.selectList();
     }
 
     @Override
@@ -53,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