| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @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 |
| | |
| | | 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; |
| | | } |
| | | } |