From ee9f604388a3e77d3f4654e326f3976552e7f532 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 25 十一月 2024 13:40:07 +0800 Subject: [PATCH] 测点启用和禁用 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetFieldServiceImpl.java | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetFieldServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetFieldServiceImpl.java index 457327b..474b0eb 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetFieldServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/service/impl/IndDataSetFieldServiceImpl.java @@ -1,19 +1,17 @@ package com.iailab.module.data.ind.data.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; 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.data.dao.IndDataSetFieldDao; import com.iailab.module.data.ind.data.entity.IndDataSetFieldEntity; -import com.iailab.module.data.ind.data.entity.IndDataSetFieldEntity; import com.iailab.module.data.ind.data.service.IndDataSetFieldService; import com.iailab.module.data.ind.data.vo.IndDataSetFieldPageReqVO; import com.iailab.module.data.ind.data.vo.IndDataSetFieldSaveReqVO; -import com.iailab.module.data.ind.data.vo.IndDataSetPageReqVO; -import com.iailab.module.data.ind.data.vo.IndDataSetSaveReqVO; import org.springframework.stereotype.Service; -import java.util.Date; +import java.util.List; import java.util.UUID; /** @@ -52,4 +50,11 @@ public void delete(String id) { baseDao.deleteById(id); } + + @Override + public List<IndDataSetFieldEntity> list(String dataSetId) { + QueryWrapper<IndDataSetFieldEntity> queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("data_set_id", dataSetId).orderByAsc("sort"); + return baseDao.selectList(queryWrapper); + } } \ No newline at end of file -- Gitblit v1.9.3