From 8bf5531fcc2566bd932216e1a8dafab2a59f4f78 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 23 十二月 2024 15:58:46 +0800 Subject: [PATCH] sampleInfo.setPlanMap 统一获取计划数据的信息,避免重复查询 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/plan/item/service/impl/PlanItemServiceImpl.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/plan/item/service/impl/PlanItemServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/plan/item/service/impl/PlanItemServiceImpl.java index ccbe1e7..155475e 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/plan/item/service/impl/PlanItemServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/plan/item/service/impl/PlanItemServiceImpl.java @@ -4,9 +4,11 @@ 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.api.plan.dto.ApiPlanItemDTO; import com.iailab.module.data.plan.item.dao.PlanItemDao; import com.iailab.module.data.plan.item.entity.PlanItemEntity; import com.iailab.module.data.plan.item.service.PlanItemService; +import com.iailab.module.data.plan.item.vo.PlanItemDataVO; import com.iailab.module.data.plan.item.vo.PlanItemPageReqVO; import com.iailab.module.data.plan.item.vo.PlanItemSaveReqVO; import com.iailab.module.data.common.enums.IncreaseCodeEnum; @@ -14,9 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import java.util.Date; -import java.util.List; -import java.util.UUID; +import java.util.*; /** * @author PanZhibao @@ -35,8 +35,9 @@ } @Override - public List<PlanItemEntity> list() { + public List<PlanItemEntity> list(Map<String, Object> params) { QueryWrapper<PlanItemEntity> queryWrapper = new QueryWrapper<>(); + queryWrapper.eq(params.get("status") != null, "status", params.get("status")); queryWrapper.orderByDesc("create_time"); return baseDao.selectList(queryWrapper); } @@ -73,4 +74,14 @@ public void delete(String id) { baseDao.deleteById(id); } + + @Override + public List<PlanItemDataVO> getSourceValue(Map<String, Object> params) { + return baseDao.getSourceValue(params); + } + + @Override + public List<PlanItemEntity> getInfoByIds(Set<String> planIds) { + return baseDao.selectBatchIds(planIds); + } } \ No newline at end of file -- Gitblit v1.9.3