From bab43330bf6f48bdb7bfb258611f51bb05ef56fe Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 06 一月 2025 09:02:21 +0800
Subject: [PATCH] 动态数据长度

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/ind/IndItemApiImpl.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/ind/IndItemApiImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/ind/IndItemApiImpl.java
index 7bf2fb6..93f346f 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/ind/IndItemApiImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/ind/IndItemApiImpl.java
@@ -1,9 +1,11 @@
 package com.iailab.module.data.api.ind;
 
 import com.iailab.framework.common.util.object.ConvertUtils;
+import com.iailab.module.data.api.ind.dto.ApiIndItemDTO;
 import com.iailab.module.data.api.ind.dto.ApiIndItemQueryDTO;
 import com.iailab.module.data.api.ind.dto.ApiIndItemValueDTO;
 import com.iailab.module.data.ind.collection.IndItemCollector;
+import com.iailab.module.data.ind.item.service.IndItemService;
 import com.iailab.module.data.ind.item.vo.IndItemValueVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
@@ -23,6 +25,10 @@
     @Autowired
     private IndItemCollector indItemCollector;
 
+    @Autowired
+    private IndItemService indItemService;
+
+    @Override
     public List<ApiIndItemValueDTO> queryIndItemDefaultValue(String itemNo){
         List<IndItemValueVO> list = indItemCollector.queryValue(itemNo);
         return ConvertUtils.sourceToTarget(list, ApiIndItemValueDTO.class);
@@ -33,4 +39,9 @@
         List<IndItemValueVO> list = indItemCollector.queryValue(dto.getItemNo(), dto.getStart(), dto.getEnd());
         return ConvertUtils.sourceToTarget(list, ApiIndItemValueDTO.class);
     }
+
+    @Override
+    public ApiIndItemDTO getInfoById(String id) {
+        return ConvertUtils.sourceToTarget(indItemService.get(id), ApiIndItemDTO.class);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3