From f853b02cb7b265379eceb2f0e3c38f9d63bb1b21 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 06 一月 2025 17:55:25 +0800 Subject: [PATCH] 执行调度模型 默认时间 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/plan/PlanItemApiImpl.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/plan/PlanItemApiImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/plan/PlanItemApiImpl.java index b37fc51..be43446 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/plan/PlanItemApiImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/plan/PlanItemApiImpl.java @@ -3,6 +3,7 @@ import com.iailab.framework.common.util.object.ConvertUtils; import com.iailab.module.data.api.plan.dto.ApiPlanDataDTO; import com.iailab.module.data.api.plan.dto.ApiPlanItemDTO; +import com.iailab.module.data.api.point.dto.ApiPointDTO; import com.iailab.module.data.common.ApiDataQueryDTO; import com.iailab.module.data.common.ApiDataValueDTO; import com.iailab.module.data.plan.item.collection.PlanItemCollector; @@ -16,8 +17,10 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; +import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; +import java.util.Set; /** * @author PanZhibao @@ -65,4 +68,13 @@ return ConvertUtils.sourceToTarget(entity, ApiPlanItemDTO.class); } + @Override + public List<ApiPlanItemDTO> getInfoByIds(Set<String> planIds) { + if (CollectionUtils.isEmpty(planIds)) { + return new ArrayList<>(); + } + List<PlanItemEntity> plans = planItemService.getInfoByIds(planIds); + return ConvertUtils.sourceToTarget(plans,ApiPlanItemDTO.class); + } + } \ No newline at end of file -- Gitblit v1.9.3